ScreenDetailed

Properties

Link copied to clipboard

The read-only Screen interface's availHeight property returns the height, in CSS pixels, of the space available for Web content on the screen.

Link copied to clipboard

A number representing the x-coordinate (left-hand edge) of the available screen area

Link copied to clipboard

A number representing the y-coordinate (top edge) of the available screen area

Link copied to clipboard

The Screen.availWidth property returns the amount of horizontal space (in CSS pixels) available to the window.

Link copied to clipboard

The Screen.colorDepth read-only property returns the color depth of the screen.

Link copied to clipboard

A number representing the screen's device pixel ratio

Link copied to clipboard
val height: Int

The Screen.height read-only property returns the height of the screen in CSS pixels.

Link copied to clipboard
Link copied to clipboard

A boolean indicating whether the screen is internal to the device or external

Link copied to clipboard

A boolean indicating whether the screen is set as the operating system (OS) primary screen or not

Link copied to clipboard

A string providing a descriptive label for the screen, for example "Built-in Retina Display"

Link copied to clipboard
val left: Int

A number representing the x-coordinate (left-hand edge) of the total screen area

Link copied to clipboard

The orientation read-only property of the Screen interface returns the current orientation of the screen.

Link copied to clipboard

Returns the bit depth of the screen.

Link copied to clipboard
val top: Int

A number representing the y-coordinate (top edge) of the total screen area

Link copied to clipboard
val width: Int

The Screen.width read-only property returns the width of the screen in CSS pixels.

Functions

Link copied to clipboard
Link copied to clipboard