<div class='type'>Function</div>


<a id='references'></a>


<h2 id="calculatedensepanescaffolddirective-windowadaptiveinfo-verticalhingepolicy">calculateDensePaneScaffoldDirective</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@ExperimentalMaterial3AdaptiveApi
fun calculateDensePaneScaffoldDirective(
    windowAdaptiveInfo: WindowAdaptiveInfo,
    verticalHingePolicy: HingePolicy = HingePolicy.AvoidSeparating
): PaneScaffoldDirective
```


Calculates the dense-mode `PaneScaffoldDirective` from a given `WindowAdaptiveInfo`. Use this
method with `calculateWindowAdaptiveInfo` to acquire Material-recommended dense-mode 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).

#### Parameters

| | |
| --- | --- |
| windowAdaptiveInfo | `WindowAdaptiveInfo` that collects useful information in making      layout adaptation decisions like `WindowSizeClass`. |
| verticalHingePolicy | `HingePolicy` that decides how layouts are supposed to address      vertical hinges. |


#### Returns

| | |
| --- | --- |
|  | an `PaneScaffoldDirective` to be used to decide adaptive layout states. |