WindowAdaptiveInfo

Class

Common
@ExperimentalMaterial3AdaptiveApi
class WindowAdaptiveInfo(
    val windowSizeClass: WindowSizeClass,
    val windowPosture: Posture
)

This class collects window info that affects adaptation decisions. An adaptive layout is supposed to use the info from this class to decide how the layout is supposed to be adapted.

Parameters

windowSizeClassWindowSizeClass of the current window.
windowPosturePosture of the current window.