@JsType(isNative=true, namespace="Cesium", name="Fullscreen") public class Fullscreen extends Object
Modifier and Type | Method and Description |
---|---|
static String |
changeEventName()
The name of the event on the document that is fired when fullscreen is entered or exited.
|
static Object |
element()
The element that is currently fullscreen, if any.
|
static boolean |
enabled()
Determine whether the browser will allow an element to be made fullscreen, or not.
|
static String |
errorEventName()
The name of the event that is fired when a fullscreen error occurs.
|
static void |
exitFullscreen()
Asynchronously exits fullscreen mode.
|
static boolean |
fullscreen()
Determines if the browser is currently in fullscreen mode.
|
static void |
requestFullscreen(Object element)
Asynchronously requests the browser to enter fullscreen mode on the given element.
|
static void |
requestFullscreen(Object element,
HMDVRDevice vrDevice)
Asynchronously requests the browser to enter fullscreen mode on the given element.
|
static boolean |
supportsFullscreen()
Detects whether the browser supports the standard fullscreen API.
|
@JsProperty(name="changeEventName") public static String changeEventName()
@JsProperty(name="element") public static Object element()
@JsProperty(name="enabled") public static boolean enabled()
@JsProperty(name="errorEventName") public static String errorEventName()
@JsProperty(name="fullscreen") public static boolean fullscreen()
@JsMethod public static void exitFullscreen()
@JsMethod public static void requestFullscreen(Object element)
element
- The HTML element which will be placed into fullscreen mode.@JsMethod public static void requestFullscreen(Object element, HMDVRDevice vrDevice)
element
- The HTML element which will be placed into fullscreen mode.vrDevice
- The VR device.@JsMethod public static boolean supportsFullscreen()
Copyright © 2019. All rights reserved.