androidx.compose.material3.adaptive.layout
MutableThreePaneScaffoldStateSince 1.1Experimental
Class · from org.jetbrains.compose.material3.adaptive:adaptive-layout:1.3.0
No hand-written docs yet.
The seekable state of a three pane scaffold. It serves as the SeekableTransitionState to manipulate the Transition between ThreePaneScaffoldValues.
class MutableThreePaneScaffoldState(
initialScaffoldValue: ThreePaneScaffoldValue,
) : ThreePaneScaffoldState
Is a
How to get one
Create it
MutableThreePaneScaffoldState(initialScaffoldValue)constructor
Functions
snapTo
fun snapTo(targetState: ThreePaneScaffoldValue)
Sets currentState and targetState``MutableThreePaneScaffoldState.targetState to targetState and snaps all values to those at that state. The transition will not have any animations running after running snapTo.
seekTo
fun seekTo(
fraction: Float,
targetState: ThreePaneScaffoldValue = this.targetState,
isPredictiveBackInProgress: Boolean = false,
)
Seeks the transition to targetState with fraction used to indicate the progress towards targetState.
animateTo
fun animateTo(
targetState: ThreePaneScaffoldValue = this.targetState,
animationSpec: FiniteAnimationSpec<Float>? = null,
isPredictiveBackInProgress: Boolean = false,
)
Updates the current targetState``MutableThreePaneScaffoldState.targetState to targetState with an animation to the new state.
Library docs
The seekable state of a three pane scaffold. It serves as the SeekableTransitionState to
manipulate the Transition between ThreePaneScaffoldValues.