Skip to content

isFullscreenEnabled ​

The isFullscreenEnabled function checks if the fullscreen API is available in the user's browser.

Syntax ​

typescript
isFullscreenEnabled(): boolean;

Parameters ​

NameTypeDescription
––This function does not take any parameters

Returns ​

NameTypeDescription
–booleantrue if the fullscreen API is available

Examples ​

typescript
isFullscreenEnabled();
// => true

Notes ​

  • Useful for checking if it is possible to switch to fullscreen mode.

References ​

Released under the MIT License.