AnimationEndReason
enum class AnimationEndReason
kotlin.Any | ||
↳ | kotlin.Enum<androidx.compose.animation.core.AnimationEndReason> | |
↳ | androidx.compose.animation.core.AnimationEndReason |
Possible reasons with which DynamicTargetAnimation can finish
Summary
Enum values | |
---|---|
Animation will be forced to end when its value reaches upper/lower bound (if they have been defined, e. |
|
Animation has finished successfully without any interruption. |
|
Animation was interrupted, e. |
|
Animation has successfully reached the BaseAnimatedValue.targetValue value and come to stop |
Inherited extension functions | ||
---|---|---|
From androidx.core.util
|
Enum values
BoundReached
enum val BoundReached : AnimationEndReason
Animation will be forced to end when its value reaches upper/lower bound (if they have been defined, e.g via AnimatedFloat.setBounds)
Unlike TargetReached, when an animation ends due to BoundReached, it often falls short
from its initial target, and the remaining velocity is often non-zero. Both the end value
and the remaining velocity can be obtained via onEnd
param in AnimatedFloat.fling
callback
Finished
enum val Finished : AnimationEndReason
Animation has finished successfully without any interruption.
Interrupted
enum val Interrupted : AnimationEndReason
Animation was interrupted, e.g by another animation
TargetReached
enum val TargetReached : AnimationEndReason
Animation has successfully reached the BaseAnimatedValue.targetValue value and come to stop