GlobalWindowSize
object 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)
}
Content copied to clipboard
Since
1.0.0
See also
Types
Link copied to clipboard
object Factory
A global factory class of the WindowType.