Interface IAnimatorBuilder
interface IAnimatorBuilder
Extends com.amazon.apmf.IStandard
Interface for building an IAnimator object.
Methods
duration()
Sets the duration of the animation. If not explicitly set, duration of 300ms will be used by default.voidduration(com.amazon.apmf.MonotonicDurationduration)
Parameters
duration
com.amazon.apmf.MonotonicDuration — Required
The duration of the animation in MonotonicDuration.
interpolator()
Sets the IInterpolator interface to use for the animation. If no interpolator function is set, a linear interpolator will be used by default.voidinterpolator(IInterpolator*interpolator)
Parameters
interpolator
IInterpolator* — Required
IInterpolator interface to use.
repeat()
Sets the repeat count and repeat direction for the animation. Sets how many times the animation should be repeated and what this animation should do when it reaches the end.voidrepeat(i32count,boolreverse)
Parameters
count
i32 — Required
The number of times the animation should repeat.
A value of 0 means the animation will play once,
a value of 1 means the animation will play twice, and so on.
If not explicitly set, repeat count of 0 will be used by default.
reverse
bool — Required
True if the animation should reverse direction
after each repetition, False if it should restart from the beginning.
animationBounds()
Sets the animation bounds using IAnimationValue. This method sets the start and end values of the animation usingvoidanimationBounds(IAnimationValue*start,IAnimationValue*end)
IAnimationValue.
If the bounds are not explicitly set, default values ranging from 0.0 to 1.0 will be used.
Parameters
start
IAnimationValue* — Required
The starting value of the animation.
end
IAnimationValue* — Required
The ending value of the animation.
Note: Both values should be of the same type (either both float or both point).
build()
Builds and returns the IAnimator object.IAnimator*build()
Returns
IAnimator*
An instance of IAnimator.

