Android 12 Developer Preview is here! Try it out, and give us your feedback!

VectorizedFiniteAnimationSpec

interface VectorizedFiniteAnimationSpec<V : AnimationVector> : VectorizedAnimationSpec<V>
androidx.compose.animation.core.VectorizedFiniteAnimationSpec

All the finite VectorizedAnimationSpecs implement this interface, including: VectorizedKeyframesSpec, VectorizedTweenSpec, VectorizedRepeatableSpec, VectorizedSnapSpec, VectorizedSpringSpec, etc. The VectorizedAnimationSpec that does not implement this is: InfiniteRepeatableSpec.

Summary

Inherited functions
Properties
open Boolean

Whether or not the VectorizedAnimationSpec specifies an infinite animation.

Properties

isInfinite

open val isInfinite: Boolean

Whether or not the VectorizedAnimationSpec specifies an infinite animation. That is, one that will not finish by itself, one that needs an external action to stop. For examples, an indeterminate progress bar, which will only stop when it is removed from the composition.