currentWindowAdaptiveInfoV2

Functions summary

WindowAdaptiveInfo

Calculates and returns WindowAdaptiveInfo of the provided context.

Cmn

Functions

currentWindowAdaptiveInfoV2

@Composable
fun currentWindowAdaptiveInfoV2(): 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.

Note that this function is meant to replace currentWindowAdaptiveInfo and support L and XL width size classes by default.

Returns
WindowAdaptiveInfo

WindowAdaptiveInfo of the provided context