🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

AnimationEndReason

Possible reasons for Animatables to end.

Source set: Common
public enum class AnimationEndReason {
    /**
     * Animation will be forced to end when its value reaches upper/lower bound (if they have been
     * defined, e.g. via [Animatable.updateBounds])
     *
     * Unlike [Finished], 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 [AnimationResult].
     */
    BoundReached,
    /** Animation has finished successfully without any interruption. */
    Finished,
}

Possible reasons for Animatables to end.

Members

BoundReached

Source set: Common
BoundReached

Animation will be forced to end when its value reaches upper/lower bound (if they have been defined, e.g. via Animatable.updateBounds)

Unlike Finished, 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 AnimationResult.

Finished

Source set: Common
Finished

Animation has finished successfully without any interruption.