GlobalWindowSize

Definition of the window size to be on the global scope.

Example:

GlobalWindowSize.compactWidth = 480
GlobalWindowSize.Factory.fromWidth { screenWidth ->
screenWidth < 0 -> throw IllegalArgumentException("value cannot be negative")
screenWidth < 500 -> WindowType.Compact(width)
screenWidth < 700 -> WindowType.Medium(width)
else -> WindowType.Expanded(width)
}

Since

1.0.0

See also

Types

Link copied to clipboard
object Factory

A global factory class of the WindowType.

Properties

Link copied to clipboard
var compactHeight: Int

Defines most phones in portrait mode

Link copied to clipboard
var compactWidth: Int

Defines most phones in portrait mode

Link copied to clipboard
var mediumHeight: Int

Defines most foldables and tablets in portrait mode

Link copied to clipboard
var mediumWidth: Int

Defines most foldables and tablets in portrait mode