compute
Computes the WindowWidthSizeClass based on the provided window width.
Return
The corresponding WindowWidthSizeClass.
Parameters
dpWidth
The width of the window in Dp.
Deprecated
Please use compute(dpWidth: Float) instead.
Replace with
compute(dpWidth = windowWidth.value)Content copied to clipboard
Computes the WindowWidthSizeClass based on the provided window width.
Return
The corresponding WindowWidthSizeClass.
Parameters
windowWidth
The width of the window in Dp.