Window Info
data class WindowInfo(val screenWidthInfo: WindowInfo.WindowType, val screenHeightInfo: WindowInfo.WindowType, val screenWidth: Dp, val screenHeight: Dp, val orientation: Orientation)
Holds information about the current window configuration and size classes.
Constructors
Link copied to clipboard
constructor(screenWidthInfo: WindowInfo.WindowType, screenHeightInfo: WindowInfo.WindowType, screenWidth: Dp, screenHeight: Dp, orientation: Orientation)
Types
Link copied to clipboard
Represents the breakpoint size class of the window dimensions. Enums automatically implement Comparable ordered by declaration (Compact < Medium < Expanded).
Properties
Link copied to clipboard
Helper check if screen width is compact.
Link copied to clipboard
Helper check if orientation is landscape.
Link copied to clipboard
Helper check if orientation is portrait.
Link copied to clipboard
The current screen Orientation.
Link copied to clipboard
The screen height in density-independent pixels (Dp).
Link copied to clipboard
The vertical window size class (WindowType).
Link copied to clipboard
The screen width in density-independent pixels (Dp).
Link copied to clipboard
The horizontal window size class (WindowType).