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 ​
| Parameter | Type |
|---|---|
element? | Element |
doc? | FullscreenDocument | null |
Returns ​
Promise<boolean>