compute

Computes the WindowWidthSizeClass based on the provided window width.

Return

The corresponding WindowWidthSizeClass.

Parameters

dpWidth

The width of the window in Dp.


fun compute(windowWidth: Dp): WindowWidthSizeClass

Deprecated

Please use compute(dpWidth: Float) instead.

Replace with

compute(dpWidth = windowWidth.value)

Computes the WindowWidthSizeClass based on the provided window width.

Return

The corresponding WindowWidthSizeClass.

Parameters

windowWidth

The width of the window in Dp.