WindowType

sealed class WindowType(val dpSize: Int)

Breakpoints defines the screen type 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

Since

1.0.0

See also

Inheritors

Constructors

Link copied to clipboard
protected constructor(dpSize: Int)

Types

Link copied to clipboard
class Compact(val dpSize: Int) : WindowType
Link copied to clipboard
class Expanded(val dpSize: Int) : WindowType
Link copied to clipboard
class Medium(val dpSize: Int) : WindowType

Properties

Link copied to clipboard
val dpSize: Int

window size