androidx.compose.material3.adaptive

Classes

HingeInfo

A class that contains the info of a hinge relevant to a Posture.

Cmn
Posture

Posture info that can help make layout adaptation decisions.

Cmn
WindowAdaptiveInfo

This class collects window info that affects adaptation decisions.

Cmn

Annotations

Composables

collectFoldingFeaturesAsState

Collects the current window folding features from WindowInfoTracker in to a State.

android
currentWindowAdaptiveInfo

Calculates and returns WindowAdaptiveInfo of the provided context.

Cmn
currentWindowAdaptiveInfoV2

Calculates and returns WindowAdaptiveInfo of the provided context.

Cmn
currentWindowDpSize

Returns and automatically update the current window size in DpSize.

Cmn
currentWindowSize

Returns and automatically update the current window size.

Cmn

Extension properties summary

List<Rect>

Returns the list of all horizontal hinge bounds.

Cmn
List<Rect>

Returns the list of all vertical hinge bounds.

Cmn
List<Rect>

Returns the list of horizontal hinge bounds that are occluding.

Cmn
List<Rect>

Returns the list of vertical hinge bounds that are occluding.

Cmn
List<Rect>

Returns the list of horizontal hinge bounds that are separating.

Cmn
List<Rect>

Returns the list of vertical hinge bounds that are separating.

Cmn

Extension properties

Posture.allHorizontalHingeBounds

val Posture.allHorizontalHingeBoundsList<Rect>

Returns the list of all horizontal hinge bounds.

Posture.allVerticalHingeBounds

val Posture.allVerticalHingeBoundsList<Rect>

Returns the list of all vertical hinge bounds.

Posture.occludingHorizontalHingeBounds

val Posture.occludingHorizontalHingeBoundsList<Rect>

Returns the list of horizontal hinge bounds that are occluding.

Posture.occludingVerticalHingeBounds

val Posture.occludingVerticalHingeBoundsList<Rect>

Returns the list of vertical hinge bounds that are occluding.

Posture.separatingHorizontalHingeBounds

val Posture.separatingHorizontalHingeBoundsList<Rect>

Returns the list of horizontal hinge bounds that are separating.

Posture.separatingVerticalHingeBounds

val Posture.separatingVerticalHingeBoundsList<Rect>

Returns the list of vertical hinge bounds that are separating.