API reference

WindowSize Class

Size configuration for a child window, specified in dp for density-independent behavior.
The SDK converts each dimension to pixels before passing the size to the platform.

Signature

data class WindowSize(val width: Dp, val height: Dp)

Constructors

WindowSize ( width , height )
Signature
constructor(width: Dp, height: Dp)
Parameters
width: Dp  Window width in dp. Must be positive.
height: Dp  Window height in dp. Must be positive.
Returns
WindowSize

Properties

height : Dp
[Get]
Signature
val height: Dp
width : Dp
[Get]
Signature
val width: Dp