androidx.compose.material3.adaptive.layout

ThreePaneScaffoldStateSince 1.1Experimental

Sealed class · from org.jetbrains.compose.material3.adaptive:adaptive-layout:1.3.0

No hand-written docs yet.

A read-only state of a three pane scaffold. It provides information about the Transition between ThreePaneScaffoldValues.

sealed class ThreePaneScaffoldState

Kinds of ThreePaneScaffoldState

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

How to get one

Ready-made values and functions that return it

Used by

Parameters that take a ThreePaneScaffoldState.

Properties

currentState

val currentState: ThreePaneScaffoldValue

Current ThreePaneScaffoldValue state of the transition. If there is an active transition, currentState and targetState are different.

targetState

val targetState: ThreePaneScaffoldValue

Target ThreePaneScaffoldValue state of the transition. If this is the same as currentState, no transition is active.

progressFraction

val progressFraction: Float

The progress of the transition from currentState to targetState as a fraction of the entire duration.

isPredictiveBackInProgress

val isPredictiveBackInProgress: Boolean

Whether a predictive back navigation is currently in progress.

Library docs

A read-only state of a three pane scaffold. It provides information about the Transition between ThreePaneScaffoldValues.