Skip to main content

Interface: IWSDKSessionLike

Defined in: service-framework-iwsdk/src/iwsdk-host.ts:51

The slice of the live XRSession the adapter reads to derive capabilities. It is the core's CapabilitySessionLike with inputSources required, because an IWSDK world always carries the collection, and the adapter hands the session straight to the core's deriveCapabilities.

The two listener members are what IWSDK's own session carries, because it is a real XRSession. They are optional all the same, so a world faked in a test still satisfies the type without them, and the adapter guards for their absence rather than assuming a full session.

Extends​

Properties​

PropertyModifierTypeOverridesInherited fromDefined in
enabledFeatures?readonlyreadonly string[]-CapabilitySessionLike.enabledFeaturesservice-framework/src/capabilities.ts:35
environmentBlendMode?readonlystring-CapabilitySessionLike.environmentBlendModeservice-framework/src/capabilities.ts:36
inputSourcesreadonlyIterable<CapabilityInputSourceLike>CapabilitySessionLike.inputSources-service-framework-iwsdk/src/iwsdk-host.ts:52

Methods​

addEventListener()?​

optional addEventListener(type: "inputsourceschange", listener: IWSDKSessionEventListener): void;

Defined in: service-framework-iwsdk/src/iwsdk-host.ts:53

Parameters​

ParameterType
type"inputsourceschange"
listenerIWSDKSessionEventListener

Returns​

void


removeEventListener()?​

optional removeEventListener(type: "inputsourceschange", listener: IWSDKSessionEventListener): void;

Defined in: service-framework-iwsdk/src/iwsdk-host.ts:54

Parameters​

ParameterType
type"inputsourceschange"
listenerIWSDKSessionEventListener

Returns​

void