XR · interface

XrSupport

Explained in XR.

interface XrSupport
import type { XrSupport } from '@driftengine/xr';

Properties

NameTypeDescription
presentreadonlybooleanWhether navigator.xr exists at all. Everything else is false without it.
immersiveVrreadonlyboolean
immersiveArreadonlyboolean
inlinereadonlyboolean
compatiblereadonlybooleanWhether a rendering context could be made XR compatible.
More

The step that actually fails without a device, and the one no isSessionSupported reports on.

reasonreadonlystringEmpty when a session could be entered. A whole sentence otherwise.