@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / readXrCapabilities
Function: readXrCapabilities() ​
ts
function readXrCapabilities(session, mode?): XrCapabilities;Defined in: xr/types.ts:124
Read granted features off a live session.
enabledFeatures is optional in the spec and missing on some UAs; when it is absent we report nothing as granted rather than optimistically assuming support, so callers degrade instead of calling an API that will throw.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
session | XRSession | null | undefined |
mode | "immersive-vr" | "immersive-ar" | "inline" | "immersive-vr" |

