AnimationResult

class AnimationResult<T, V : AnimationVector>(val endState: AnimationState<T, V>, val endReason: AnimationEndReason)

AnimationResult contains information about an animation at the end of the animation. endState captures the value/velocity/frame time, etc of the animation at its last frame. It can be useful for starting another animation to continue the velocity from the previously interrupted animation. endReason describes why the animation ended, it could be either of the following:

Constructors

Link copied to clipboard
constructor(endState: AnimationState<T, V>, endReason: AnimationEndReason)

Properties

Link copied to clipboard

The reason why the animation has ended. Could be either of the following:

Link copied to clipboard

The state of the animation in its last frame before it's canceled or reset. This captures the animation value/velocity/frame time, etc at the point of interruption, or before the velocity is reset when the animation finishes successfully.

Functions

Link copied to clipboard
open override fun toString(): String