@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="XRSystem")
public class XRSystem
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
EventHandler |
ondevicechange
The ondevicechange property of the XRSystem interface is passed a devicechange event whenever availability of an immersive device changes.
|
| Modifier | Constructor and Description |
|---|---|
protected |
XRSystem() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDevicechangeListener(EventListener callback) |
void |
addDevicechangeListener(EventListener callback,
AddEventListenerOptions options) |
void |
addDevicechangeListener(EventListener callback,
boolean useCapture) |
Promise<java.lang.Boolean> |
isSessionSupported(java.lang.String mode)
The XRSystem method isSessionSupported() returns a promise which resolves to true if the specified WebXR session mode is supported by the user's WebXR device.
|
void |
removeDevicechangeListener(EventListener callback) |
void |
removeDevicechangeListener(EventListener callback,
boolean useCapture) |
void |
removeDevicechangeListener(EventListener callback,
EventListenerOptions options) |
Promise<XRSession> |
requestSession(java.lang.String mode)
The XRSystem interface's requestSession() method returns a promise which resolves to an XRSession object through which you can manage the requested type of WebXR session.
|
Promise<XRSession> |
requestSession(java.lang.String mode,
XRSessionInit options)
The XRSystem interface's requestSession() method returns a promise which resolves to an XRSession object through which you can manage the requested type of WebXR session.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListener@Nullable public EventHandler ondevicechange
@Nonnull public Promise<java.lang.Boolean> isSessionSupported(@XRSessionMode @Nonnull java.lang.String mode)
@Nonnull public Promise<XRSession> requestSession(@XRSessionMode @Nonnull java.lang.String mode, @Nonnull XRSessionInit options)
@Nonnull public Promise<XRSession> requestSession(@XRSessionMode @Nonnull java.lang.String mode)
@JsOverlay
public final void addDevicechangeListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addDevicechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addDevicechangeListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeDevicechangeListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeDevicechangeListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeDevicechangeListener(@Nonnull
EventListener callback)