androidx.compose.animation.core

FiniteAnimationSpec

Interface · from org.jetbrains.compose.animation:animation-core:1.12.2

No hand-written docs yet.

FiniteAnimationSpec is the interface that all non-infinite AnimationSpecs implement, including: TweenSpec, SpringSpec, KeyframesSpec, RepeatableSpec, SnapSpec, etc. By definition, InfiniteRepeatableSpec does not implement this interface.

interface FiniteAnimationSpec<T> : AnimationSpec<T>

Is a

Kinds of FiniteAnimationSpec

Anywhere a FiniteAnimationSpec is expected, you can pass any of these.

How to get one

Ready-made values and functions that return it

Or create one of the kinds listed above.

Used by

Parameters that take a FiniteAnimationSpec.

Library docs

FiniteAnimationSpec is the interface that all non-infinite AnimationSpecs implement, including: TweenSpec, SpringSpec, KeyframesSpec, RepeatableSpec, SnapSpec, etc. By definition, InfiniteRepeatableSpec does not implement this interface.