ScreenInfo

@Serializable
data class ScreenInfo(val left: Int, val top: Int, val width: Int, val height: Int, val availLeft: Int, val availTop: Int, val availWidth: Int, val availHeight: Int, val devicePixelRatio: Double, val orientation: Emulation.ScreenOrientation, val colorDepth: Int, val isExtended: Boolean, val isInternal: Boolean, val isPrimary: Boolean, val label: String, val id: String)

Screen information similar to the one returned by window.getScreenDetails() method, see https://w3c.github.io/window-management/#screendetailed.

Constructors

Link copied to clipboard
constructor(left: Int, top: Int, width: Int, height: Int, availLeft: Int, availTop: Int, availWidth: Int, availHeight: Int, devicePixelRatio: Double, orientation: Emulation.ScreenOrientation, colorDepth: Int, isExtended: Boolean, isInternal: Boolean, isPrimary: Boolean, label: String, id: String)

Properties

Link copied to clipboard

Height of the available screen area.

Link copied to clipboard

Offset of the left edge of the available screen area.

Link copied to clipboard

Offset of the top edge of the available screen area.

Link copied to clipboard

Width of the available screen area.

Link copied to clipboard

Specifies the screen's color depth in bits.

Link copied to clipboard

Specifies the screen's device pixel ratio.

Link copied to clipboard
val height: Int

Height of the screen.

Link copied to clipboard
val id: String

Specifies the unique identifier of the screen.

Link copied to clipboard

Indicates whether the device has multiple screens.

Link copied to clipboard

Indicates whether the screen is internal to the device or external, attached to the device.

Link copied to clipboard

Indicates whether the screen is set as the the operating system primary screen.

Link copied to clipboard

Specifies the descriptive label for the screen.

Link copied to clipboard
val left: Int

Offset of the left edge of the screen.

Link copied to clipboard

Specifies the screen's orientation.

Link copied to clipboard
val top: Int

Offset of the top edge of the screen.

Link copied to clipboard
val width: Int

Width of the screen.