AnimationController

A registry of active Animatables. A host app calls tick once per frame (its own clock, not ours — see Animatable) and every registered animation advances together.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun register(animatable: Animatable)

Starts advancing animatable with every tick.

Link copied to clipboard
fun tick(deltaMs: Long)

Advances every registered animation by deltaMs milliseconds: call it once per frame, from the host's own clock.

Link copied to clipboard
fun unregister(animatable: Animatable)

Stops advancing animatable; an animation that is not registered is ignored. It is safe to do this from an animation's own Animatable.onTick.