Class Info |
|---|
public class AnimationSet extends Animation An animation set. |
Constructor Name |
|---|
AnimationSet(boolean shareInterpolator) Creates an AnimationSet object using the parameter indicating whether to share the interpolator. |
Qualifier and Type | Method Name and Description |
|---|---|
void | addAnimation(Animation animation) Adds an animation. |
void | Deletes an animation. |
Interpolator | Obtains an animation interpolator. |
long | Obtains the animation duration. |
void | setDuration(long duration) Sets the animation duration. |
void | setInterpolator(Interpolator interpolator) Sets an animation interpolator. |
Methods Inherited from Class com.huawei.hms.maps.model.animation.Animation |
|---|
getDuration(), setInterpolator(Interpolator interpolator) |
Constructor |
|---|
public AnimationSet(boolean shareInterpolator) Creates an AnimationSet object using the parameter indicating whether to share the interpolator. |
Parameters
Name | Description |
|---|---|
shareInterpolator | Indicates whether to share the interpolator. |
Method |
|---|
public void addAnimation(Animation animation) Adds an animation. |
Parameters
Name | Description |
|---|---|
animation | Animation. |
Method |
|---|
public Interpolator getInterpolator() Obtains an animation interpolator. |
Returns
Type | Description |
|---|---|
Interpolator | Interpolator. |
Method |
|---|
public long getDuration() Obtains the animation duration. |
Returns
Type | Description |
|---|---|
long | Animation duration, in milliseconds. |