Interface: WindowHandle
Defined in: packages/webxr-uiextensions/src/adapter.ts:165
A window an adapter spawned, before its panel necessarily exists.
createWindow itself stays adapter-specific because the config payload
differs per engine, but what it hands back is the same everywhere: an id, a
panel once there is one, and a one-shot readiness callback.
Extended by
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
id | readonly | string | The window's id - the one passed in, or one the adapter generated. | packages/webxr-uiextensions/src/adapter.ts:167 |
panel | readonly | PanelHandle | undefined | The live panel, or undefined until the adapter has attached the document. IWSDK loads and parses the markup over later frames; the three.js host interprets it during createWindow, so there it is set straight away. | packages/webxr-uiextensions/src/adapter.ts:174 |
Methods
onReady()
onReady(listener: (panel: PanelHandle) => void): () => void;
Defined in: packages/webxr-uiextensions/src/adapter.ts:180
Run listener once, when the panel is attached. Fires immediately if it
already is, so wiring order never matters. Returns an unsubscribe
function for the case where the caller gives up first.
Parameters
| Parameter | Type |
|---|---|
listener | (panel: PanelHandle) => void |
Returns
() => void