Skip to main content

Interface: SessionRequestOptions

Defined in: service-framework/src/runtime-adapter.ts:102

Properties

PropertyModifierTypeDescriptionDefined in
optionalFeatures?readonlyreadonly string[]WebXR feature strings to request but do without. Merged the same way.service-framework/src/runtime-adapter.ts:117
requiredFeatures?readonlyreadonly 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.service-framework/src/runtime-adapter.ts:115
timeoutMs?readonlynumberHow long to wait for the session before giving up. Default 10000 ms.service-framework/src/runtime-adapter.ts:104