Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IAnimatorBuilder

interface IAnimatorBuilder
Extends com.amazon.apmf.IStandard Interface for building an IAnimator object.

Methods

duration()

void duration(com.amazon.apmf.MonotonicDuration duration)
Sets the duration of the animation. If not explicitly set, duration of 300ms will be used by default.

Parameters

duration
com.amazon.apmf.MonotonicDuration — Required The duration of the animation in MonotonicDuration.

interpolator()

void interpolator(IInterpolator* interpolator)
Sets the IInterpolator interface to use for the animation. If no interpolator function is set, a linear interpolator will be used by default.

Parameters

interpolator
IInterpolator* — Required IInterpolator interface to use.

repeat()

void repeat(i32 count, bool reverse)
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.

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()

void animationBounds(IAnimationValue* start, IAnimationValue* end)
Sets the animation bounds using IAnimationValue. This method sets the start and end values of the animation using 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()

IAnimator* build()
Builds and returns the IAnimator object.

Returns

IAnimator* An instance of IAnimator.
Last modified on October 29, 2026