WindowDpSize

sealed class WindowDpSize

Copyright 2022 Google LLC. SPDX-License-Identifier: Apache-2.0

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 dp size of the viewport.

Types

Link copied to clipboard
class Compact(windowDpSize: DpSize) : WindowDpSize
Link copied to clipboard
class Expanded(windowDpSize: DpSize) : WindowDpSize
Link copied to clipboard
class Medium(windowDpSize: DpSize) : WindowDpSize

Properties

Link copied to clipboard
val windowSize: DpSize

Inheritors

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