ScreenOrientation

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

MDN Reference

Properties

Link copied to clipboard

The angle read-only property of the angle.

Link copied to clipboard

The type read-only property of the type, one of portrait-primary, portrait-secondary, landscape-primary, or landscape-secondary.

Functions

Link copied to clipboard
Link copied to clipboard
fun unlock()

The unlock() method of the document from its default orientation.

Link copied to clipboard