Class

WindowAdaptiveInfo

This class collects window info that affects adaptation decisions.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Source set: Common

Added in 1.0.0-alpha06

@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

windowSizeClass WindowSizeClass of the current window.
windowPosture Posture of the current window.