Package-level declarations

Types

Link copied to clipboard
sealed interface OrientationLockType
Link copied to clipboard
sealed interface OrientationType
Link copied to clipboard
open class Screen : EventTarget

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The ScreenOrientation interface of the Screen Orientation API provides information about the current orientation of the document.

Properties

Link copied to clipboard
Link copied to clipboard
external val screen: Screen

The Window property screen returns a reference to the screen object associated with the window.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun ScreenOrientation.lock(orientation: OrientationLockType)

The lock() method of the ScreenOrientation interface locks the orientation of the containing document to the specified orientation.