WindowSize

sealed class WindowSize

Breakpoints defines the screen size at which a layout will adapt to best fit content and conform to responsive layout requirements. A breakpoint range informs how a screen adjusts to fit its size and orientation.

Design for large screens

Compact: Most phones in portrait mode Medium: Most foldables and tablets in portrait mode Expanded: Most tablets in landscape mode

Parameters

windowSize

Represent the current size of the viewport.

Types

Link copied to clipboard
class Compact(windowPixelSize: Size) : WindowSize
Link copied to clipboard
class Expanded(windowPixelSize: Size) : WindowSize
Link copied to clipboard
class Medium(windowPixelSize: Size) : WindowSize

Properties

Link copied to clipboard
val windowSize: Size

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard