@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="XRSystem")
public class XRSystem
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
@JsNullable 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) |
@JsNonNull 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) |
@JsNonNull 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.
|
@JsNonNull 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, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic @JsNullable EventHandler ondevicechange
public @JsNonNull Promise<java.lang.Boolean> isSessionSupported(@XRSessionMode @Nonnull java.lang.String mode)
public @JsNonNull Promise<XRSession> requestSession(@XRSessionMode @Nonnull java.lang.String mode, @Nonnull XRSessionInit options)
public @JsNonNull 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)