Interface: SessionRequestOptions
Defined in: runtime-adapter.ts:102
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
optionalFeatures? | readonly | readonly string[] | WebXR feature strings to request but do without. Merged the same way. | runtime-adapter.ts:117 |
requiredFeatures? | readonly | readonly string[] | WebXR feature strings the session cannot do without, such as "hand-tracking". A host that cannot grant one refuses the whole request. These are merged over whatever the host binding was configured with rather than replacing it, so a per-request feature is an addition and never a way to lose the app's own defaults. An app that swaps from "immersive-vr" to "immersive-ar" mid-session needs this: without it the second session gets whatever defaults the host was built with, which were chosen for the first. | runtime-adapter.ts:115 |
timeoutMs? | readonly | number | How long to wait for the session before giving up. Default 10000 ms. | runtime-adapter.ts:104 |