AnimationScope

AnimationScope provides all the animation related info specific to an animation run. An AnimationScope will be accessible during an animation.

See also

Properties

Link copied to clipboard

The time when the animation finished successfully in the System.nanoTime timebase.

Link copied to clipboard

Indicates whether the animation is currently running.

Link copied to clipboard

Last frame time of the animation.

Link copied to clipboard

Start time of the animation in the System.nanoTime timebase.

Link copied to clipboard

Target value of the animation.

Link copied to clipboard
var value: T

Current value of the AnimationScope.

Link copied to clipboard
val velocity: T

Velocity of type T, converted from velocityVector.

Link copied to clipboard

Current velocity vector of the AnimationScope.

Functions

Link copied to clipboard

Cancels the animation that this AnimationScope corresponds to. The scope will not be updated any more after cancelAnimation is called.

Link copied to clipboard

Creates an AnimationState that populates all the fields in AnimationState from AnimationScope.