Class

InfiniteTransition.TransitionAnimationState

Each animation created using InfiniteTransition.animateColorandroidx.compose.animation.animateColor, InfiniteTransition.animateFloat, or InfiniteTransition.animateValue is represented as a TransitionAnimationState in InfiniteTransition.

Source set: Common
public inner class TransitionAnimationState<T, V : AnimationVector>
    internal constructor(
        internal var initialValue: T,
        internal var targetValue: T,
        public val typeConverter: TwoWayConverter<T, V>,
        animationSpec: AnimationSpec<T>,
        public val label: String,
    ) : State<T>

Each animation created using InfiniteTransition.animateColor, InfiniteTransition.animateFloat, or InfiniteTransition.animateValue is represented as a TransitionAnimationState in InfiniteTransition. typeConverter converts the animation value from/to an AnimationVector. label differentiates this animation from others in android studio.

Properties

animationSpec

Source set: Common
public var : AnimationSpec<T>

AnimationSpec that is used for current animation run.

animation

Source set: Common
public var animation: TargetBasedAnimation<T, V>

All the animation configurations including initial value/velocity & target value for animating from initialValue to targetValue are captured in animation.

Last updated: