androidx.compose.material3.adaptive.layout

calculatePaneScaffoldDirectiveExperimental

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

No hand-written docs yet.

Calculates the recommended PaneScaffoldDirective from a given WindowAdaptiveInfo. Use this method with currentWindowAdaptiveInfoV2 to acquire Material-recommended adaptive layout settings of the current activity window.

ParametersExperimental

fun calculatePaneScaffoldDirective(
    windowAdaptiveInfo: WindowAdaptiveInfo,
    verticalHingePolicy: HingePolicy = HingePolicy.AvoidSeparating,
): PaneScaffoldDirective

windowAdaptiveInfo: WindowAdaptiveInfoRequired

WindowAdaptiveInfo that collects useful information in making layout adaptation decisions like androidx.window.core.layout.WindowSizeClass.

verticalHingePolicy: HingePolicyOptional

Default: HingePolicy.AvoidSeparating

HingePolicy that decides how layouts are supposed to address vertical hinges.

Library docs

Calculates the recommended PaneScaffoldDirective from a given WindowAdaptiveInfo. Use this method with currentWindowAdaptiveInfoV2 to acquire Material-recommended adaptive layout settings of the current activity window.

See more details on the [Material design guideline site] (https://m3.material.io/foundations/layout/applying-layout/window-size-classes).