requestFullscreen

fun requestFullscreen(element: Any, vrDevice: Any? = definedExternally)(source)

Asynchronously requests the browser to enter fullscreen mode on the given element. If fullscreen mode is not supported by the browser, does nothing.

// Put the entire page into fullscreen.
Fullscreen.requestFullscreen(document.body)

// Place only the Cesium canvas into fullscreen.
Fullscreen.requestFullscreen(scene.canvas)

Parameters

element

The HTML element which will be placed into fullscreen mode.

vrDevice

The HMDVRDevice device.

See also