AnimationCoordinator

Manages multiple animations, including time-based animations, like Animator and , and physics-based animations, like SpringAnimation, allowing them to be started together and providing callbacks for start and end events.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
interface Listener
Listener for animation coordinator events.

Functions

Link copied to clipboard
open fun addAnimator(@NonNull animator: Animator)
Adds an Animator or AnimatorSet to be managed by this coordinator.
Link copied to clipboard
open fun addDynamicAnimation(@NonNull dynamicAnimation: DynamicAnimation<out Any>)
Adds a DynamicAnimation to be managed by this coordinator.
Link copied to clipboard
Adds a listener to receive animation start and end events.
Link copied to clipboard
open fun clear()
Clears all animations and listeners.
Link copied to clipboard
Removes a listener.
Link copied to clipboard
open fun start()
Starts all managed animations simultaneously.