AnimationState

constructor(typeConverter: TwoWayConverter<T, V>, initialValue: T, initialVelocityVector: V? = null, lastFrameTimeNanos: Long = AnimationConstants.UnspecifiedTime, finishedTimeNanos: Long = AnimationConstants.UnspecifiedTime, isRunning: Boolean = false)

Parameters

typeConverter

TwoWayConverter to convert type T from and to AnimationVector

initialValue

initial value of the AnimationState

initialVelocityVector

initial velocity of the AnimationState, null (i.e. no velocity) by default.

lastFrameTimeNanos

last frame time of the animation, AnimationConstants.UnspecifiedTime by default

finishedTimeNanos

the time that the animation finished successfully, AnimationConstants.UnspecifiedTime until then

isRunning

whether the AnimationState is currently being updated by an animation. False by default