WindowSize



Size of the window or dialog in Dp.

Summary

Public functions

operator Dp
android
operator Dp
android
WindowSize
copy(width: Dp, height: Dp)

Returns a copy of this WindowSize instance optionally overriding the width or height parameter.

android
open String
android

Public properties

Dp

The height of the window in Dp.

android
Boolean

true if the window size has specified values

android
Dp

The width of the window in Dp.

android

Public functions

component1

operator fun component1(): Dp

component2

operator fun component2(): Dp

copy

fun copy(width: Dp = this.width, height: Dp = this.height): WindowSize

Returns a copy of this WindowSize instance optionally overriding the width or height parameter.

toString

open fun toString(): String

Public properties

height

val heightDp

The height of the window in Dp. If it is Dp.Unspecified then the height of the window will determined by the inner content.

isSpecified

val isSpecifiedBoolean

true if the window size has specified values

false if the window size are not yet determined (width or height are Dp.Unspecified)

width

val widthDp

The width of the window in Dp. If it is Dp.Unspecified then the width of the window will determined by the inner content.