ThreePaneScaffoldValue
Class
Common
@ExperimentalMaterial3AdaptiveApi
class ThreePaneScaffoldValue(
val primary: PaneAdaptedValue,
val secondary: PaneAdaptedValue,
val tertiary: PaneAdaptedValue
)
The adapted value of ThreePaneScaffold
. It contains each pane's adapted value.
ThreePaneScaffold
will use the adapted values to decide which panes should be displayed
and how they should be displayed. With other input parameters of ThreePaneScaffold
fixed,
each possible instance of this class should represent a unique state of ThreePaneScaffold
and developers can compare two ThreePaneScaffoldValue
to decide if there is a layout structure
change.
For a Material-opinionated layout, it's suggested to use calculateThreePaneScaffoldValue
to
calculate the current scaffold value.
Parameters
primary | PaneAdaptedValue of the primary pane of ThreePaneScaffold |
secondary | PaneAdaptedValue of the secondary pane of ThreePaneScaffold |
tertiary | PaneAdaptedValue of the tertiary pane of ThreePaneScaffold |
Functions
operator fun get(role: ThreePaneScaffoldRole): PaneAdaptedValue