{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

InfiniteTransition.TransitionAnimationState

public final inner class InfiniteTransition.TransitionAnimationState<T extends Object, V extends AnimationVector> implements State


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.

Summary

Public methods

final @NonNull TargetBasedAnimation<@NonNull T, @NonNull V>

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

final @NonNull AnimationSpec<@NonNull T>

AnimationSpec that is used for current animation run.

final @NonNull String
final @NonNull TwoWayConverter<@NonNull T, @NonNull V>
@NonNull T

Public methods

getAnimation

public final @NonNull TargetBasedAnimation<@NonNull T, @NonNull V> getAnimation()

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

getAnimationSpec

public final @NonNull AnimationSpec<@NonNull T> getAnimationSpec()

AnimationSpec that is used for current animation run.

getLabel

public final @NonNull String getLabel()

getTypeConverter

public final @NonNull TwoWayConverter<@NonNull T, @NonNull V> getTypeConverter()

getValue

public @NonNullgetValue()