Skip to main content

Interface: IwsdkWindowHandle

Defined in: packages/iwsdk-uiextensions/src/scene-host.ts:91

A window spawned by IwsdkSceneHost.createWindow.

Extends

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
entityreadonlyEntityThe ECS entity carrying PanelUI, UIWindow and the interaction tags.-packages/iwsdk-uiextensions/src/scene-host.ts:93
idreadonlystringThe window's id - the one passed in, or one the adapter generated.WindowHandle.idpackages/webxr-uiextensions/src/adapter.ts:167
panelreadonlyPanelHandle | undefinedThe 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.WindowHandle.panelpackages/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

ParameterType
listener(panel: PanelHandle) => void

Returns

() => void

Inherited from

WindowHandle.onReady