Screen

open class Screen : EventTarget(source)

The Screen interface represents a screen, usually the one on which the current window is being rendered, and is obtained using window.screen.

MDN Reference

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

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
val height: Int

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

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 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