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
| Property | Modifier | Type | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
enabledFeatures? | readonly | readonly string[] | - | CapabilitySessionLike.enabledFeatures | service-framework/src/capabilities.ts:35 |
environmentBlendMode? | readonly | string | - | CapabilitySessionLike.environmentBlendMode | service-framework/src/capabilities.ts:36 |
inputSources | readonly | Iterable<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
| Parameter | Type |
|---|---|
type | "inputsourceschange" |
listener | IWSDKSessionEventListener |
Returns
void
removeEventListener()?
optional removeEventListener(type: "inputsourceschange", listener: IWSDKSessionEventListener): void;
Defined in: service-framework-iwsdk/src/iwsdk-host.ts:54
Parameters
| Parameter | Type |
|---|---|
type | "inputsourceschange" |
listener | IWSDKSessionEventListener |
Returns
void