Methods
(static) exitFullscreen()
Asynchronously exits fullscreen mode. If the browser is not currently
in fullscreen, or if fullscreen mode is not supported by the browser, does nothing.
- Source:
(static) requestFullscreen(element, vrDeviceopt)
Asynchronously requests the browser to enter fullscreen mode on the given element.
If fullscreen mode is not supported by the browser, does nothing.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
element |
Object | The HTML element which will be placed into fullscreen mode. | |
vrDevice |
HMDVRDevice |
<optional> |
The VR device. |
- Source:
Example
// Put the entire page into fullscreen.
Cesium.Fullscreen.requestFullscreen(document.body)
// Place only the Cesium canvas into fullscreen.
Cesium.Fullscreen.requestFullscreen(scene.canvas)
(static) supportsFullscreen() → {Boolean}
Detects whether the browser supports the standard fullscreen API.
- Source:
Returns:
true
if the browser supports the standard fullscreen API,
false
otherwise.
- Type
- Boolean