Fullscreen

Encapsulates the functionality related to switching cross-browser to full screen view and back.

Properties

2
enabled: Booleanstatic

True if the fullscreen mode is supported and enabled, false otherwise

isFullscreen: Booleanstatic

True if fullscreen mode is currently active, false otherwise

Functions

4
exitstatic

Exit the previously entered fullscreen mode.

Returns: Promise -

A promise which is resolved once the user agent has finished exiting full-screen mode

Installs the passed listener to fullscreenchange event

ParameterTypeDescription
fnfunction

The listener to install

requeststatic

Request entering the fullscreen mode.

ParameterTypeDescription
elementHTMLElement

Element to be displayed fullscreen

Returns: Promise -

A promise which is resolved with a value of undefined when the transition to full screen is complete.

Uninstalls the passed listener from fullscreenchange event

ParameterTypeDescription
fnfunction