XR · interface
XrSupport
Explained in XR.
interface XrSupportimport type { XrSupport } from '@driftengine/xr';Properties
| Name | Type | Description |
|---|---|---|
presentreadonly | boolean | Whether navigator.xr exists at all. Everything else is false without it. |
immersiveVrreadonly | boolean | |
immersiveArreadonly | boolean | |
inlinereadonly | boolean | |
compatiblereadonly | boolean | Whether a rendering context could be made XR compatible.MoreThe step that actually fails without a device, and the one no |
reasonreadonly | string | Empty when a session could be entered. A whole sentence otherwise. |