Fullscreen
Encapsulates the functionality related to switching cross-browser to full screen view and back.
Properties
2
Properties
2True if the fullscreen mode is supported and enabled, false otherwise
True if fullscreen mode is currently active, false otherwise
Functions
4
Functions
4exitstatic
Exit the previously entered fullscreen mode.
Returns: Promise -
A promise which is resolved once the user agent has finished exiting full-screen mode
onFullscreenChangestatic
Installs the passed listener to fullscreenchange event
| Parameter | Type | Description |
|---|---|---|
fn | function | The listener to install |
requeststatic
Request entering the fullscreen mode.
| Parameter | Type | Description |
|---|---|---|
element | HTMLElement | 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.
unFullscreenChangestatic
Uninstalls the passed listener from fullscreenchange event
| Parameter | Type | Description |
|---|---|---|
fn | function |