androidx.compose.animation.core
TransitionState
Sealed class · from org.jetbrains.compose.animation:animation-core:1.12.2
No hand-written docs yet.
Use with rememberTransition to create a Transition that can be dynamically targeted with MutableTransitionState or seekable with SeekableTransitionState.
sealed class TransitionState<S>
Kinds of TransitionState
Anywhere a TransitionState is expected, you can pass any of these.
DeferredTransitionStateanimation-coreMutableTransitionStateanimation-coreSeekableTransitionStateanimation-core
How to get one
Properties
currentState
val currentState: S
Current state of the transition. If there is an active transition, currentState and targetState are different.
targetState
val targetState: S
Target state of the transition. If this is the same as currentState, no transition is active.
Library docs
Use with rememberTransition to create a Transition that can be dynamically targeted with
MutableTransitionState or seekable with SeekableTransitionState.