Screen extension type

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

Note that browsers determine which screen to report as current by detecting which screen has the center of the browser window.


API documentation sourced from MDN Web Docs.

on
Implemented types
Available extensions

Properties

availHeight int
The read-only Screen interface's availHeight property returns the height, in CSS pixels, of the space available for Web content on the screen. Since Screen is exposed on the Window interface's Window.screen property, you access availHeight using window.screen.availHeight.
no setter
availWidth int
The Screen.availWidth property returns the amount of horizontal space (in pixels) available to the window.
no setter
colorDepth int
The Screen.colorDepth read-only property returns the color depth of the screen. Per the CSSOM, some implementations return 24 for compatibility reasons. See the browser compatibility section for those that don't.
no setter
hashCode int
The hash code for this object.
no setterinherited
height int
The Screen.height read-only property returns the height of the screen in pixels.
no setter
orientation ScreenOrientation
The orientation read-only property of the Screen interface returns the current orientation of the screen.
no setter
pixelDepth int
Returns the bit depth of the screen. Per the CSSOM, some implementations return 24 for compatibility reasons. See the browser compatibility section for those that don't.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
The Screen.width read-only property returns the width of the screen in CSS pixels.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited