AnimationState
class AnimationState<T, V : AnimationVector> : State<T>
kotlin.Any | |
↳ | androidx.compose.animation.core.AnimationState |
AnimationState contains the necessary information to indicate the state of an animation. Once an AnimationState is constructed, it can only be updated/mutated by animations. If there's a need to mutate some of the fields of an AnimationState, consider using copy functions.
Summary
Public constructors | |
---|---|
<init>(typeConverter: TwoWayConverter<T, V>, initialValue: T, initialVelocityVector: V? = null, lastFrameTime: Uptime = Uptime.Unspecified, finishedTime: Uptime = Uptime.Unspecified, isRunning: Boolean = false) AnimationState contains the necessary information to indicate the state of an animation. |
Extension functions | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
From androidx.compose.animation.core
|
Inherited extension functions | ||
---|---|---|
From androidx.compose.runtime
|
Properties | |
---|---|
Uptime |
The time when the animation finished successfully. |
Boolean |
Indicates whether the animation is currently running. |
Uptime |
Last frame time of the animation. |
TwoWayConverter<T, V> |
TwoWayConverter to convert type T from and to AnimationVector |
T |
Current value of the AnimationState. |
T |
Velocity of type T, converted from velocityVector. |
V |
Current velocity vector of the AnimationState. |
Extension properties | ||
---|---|---|
From androidx.compose.animation.core
|
Public constructors
<init>
AnimationState(
typeConverter: TwoWayConverter<T, V>,
initialValue: T,
initialVelocityVector: V? = null,
lastFrameTime: Uptime = Uptime.Unspecified,
finishedTime: Uptime = Uptime.Unspecified,
isRunning: Boolean = false)
AnimationState contains the necessary informati