🌈 Create new beautiful Compose Gradients with our new wesite ->
Composable Function

calculateWindowSizeClass

Calculates the window's WindowSizeClass for the provided activity.

calculateWindowSizeClass

Source set: Android
@Composable
public fun calculateWindowSizeClass(activity: Activity): WindowSizeClass

Calculates the window's WindowSizeClass for the provided activity.

A new WindowSizeClass will be returned whenever a configuration change causes the width or height of the window to cross a breakpoint, such as when the device is rotated or the window is resized.

Content updated: