Skip to main content

Interface: BabylonXRSessionLike

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

The slice of the raw XRSession Babylon exposes. It extends the core's CapabilitySessionLike, so a live session goes straight to deriveCapabilities with no mapping.

This is the same WebXR object the three.js binding types as WebXRSessionLike. The two engine packages do not depend on each other, so the shape is declared once per package rather than shared.

Extends

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
enabledFeatures?readonlyreadonly string[]-CapabilitySessionLike.enabledFeaturesservice-framework/src/capabilities.ts:35
environmentBlendMode?readonlystring-CapabilitySessionLike.environmentBlendModeservice-framework/src/capabilities.ts:36
inputSources?readonlyIterable<CapabilityInputSourceLike, any, any>-CapabilitySessionLike.inputSourcesservice-framework/src/capabilities.ts:37
visibilityState?readonlystring"visible", "visible-blurred" or "hidden" on a live session.-service-framework-babylon/src/babylon-runtime-adapter.ts:74

Methods

addEventListener()

addEventListener(type: BabylonXRSessionEventType, listener: BabylonXREventListener): void;

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

Parameters

ParameterType
typeBabylonXRSessionEventType
listenerBabylonXREventListener

Returns

void


removeEventListener()

removeEventListener(type: BabylonXRSessionEventType, listener: BabylonXREventListener): void;

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

Parameters

ParameterType
typeBabylonXRSessionEventType
listenerBabylonXREventListener

Returns

void