TransitionState
-
Cmn
sealed class TransitionState<S : Any?>
MutableTransitionState |
MutableTransitionState contains two fields: |
SeekableTransitionState |
A |
Use with rememberTransition to create a Transition that can be dynamically targeted with MutableTransitionState or seekable with SeekableTransitionState.
Summary
Protected constructors |
|
|---|---|
<S : Any?> TransitionState() |
Cmn
|
Public properties |
||
|---|---|---|
abstract S |
Current state of the transition. |
Cmn
|
abstract S |
Target state of the transition. |
Cmn
|
Protected constructors
Public properties
currentState
abstract val currentState: S
Current state of the transition. If there is an active transition, currentState and targetState are different.
targetState
abstract val targetState: S
Target state of the transition. If this is the same as currentState, no transition is active.