Skip to content

1681-engine / index / toggleFullscreen

Function: toggleFullscreen() ​

ts
function toggleFullscreen(element?, doc?): Promise<boolean>;

Defined in: src/platform/fullscreen.ts:73

Enters or leaves; resolves whether the page is in fullscreen afterwards (as far as the call could tell).

Parameters ​

ParameterType
element?Element
doc?FullscreenDocument | null

Returns ​

Promise<boolean>

Released under the MIT License.