currentWindowAdaptiveInfo

Functions summary

WindowAdaptiveInfo
@Composable
currentWindowAdaptiveInfo(supportLargeAndXLargeWidth: Boolean)

This function is deprecated. Please use V2 version of this function to support L and XL width size classes.

Cmn

Functions

currentWindowAdaptiveInfo

@Composable
fun currentWindowAdaptiveInfo(supportLargeAndXLargeWidth: Boolean = false): WindowAdaptiveInfo

Calculates and returns WindowAdaptiveInfo of the provided context. It's a convenient function that uses the default WindowSizeClass constructor and the default Posture calculation functions to retrieve WindowSizeClass and Posture.

Parameters
supportLargeAndXLargeWidth: Boolean = false

true to support the large and extra-large window width size classes, which makes the returned WindowSizeClass be calculated based on the breakpoints that include large and extra-large widths.

Returns
WindowAdaptiveInfo

WindowAdaptiveInfo of the provided context