Skip to main content

Interface: XrBlocksWindowHandle

Defined in: xrblocks-uiextensions/src/host.ts:103

A window spawned by UixWindowHost.createWindow.

Satisfies the core CoreWindowHandle and adds the three.js specifics. panel is the document itself, which already implements PanelHandle, and is never undefined here: uikitml interprets the markup synchronously, so the panel exists the moment createWindow returns.

Extends

Properties

PropertyModifierTypeDescriptionOverridesDefined in
documentpublicUixPanelDocument--xrblocks-uiextensions/src/host.ts:107
grouppublicGroupThe scene-graph node - position/rotate freely.-xrblocks-uiextensions/src/host.ts:106
idreadonlystringThe window's id - the one passed in, or one the adapter generated.WindowHandle.idxrblocks-uiextensions/src/host.ts:104
panelreadonlyUixPanelDocumentSame object as document, under the portable name.WindowHandle.panelxrblocks-uiextensions/src/host.ts:109

Methods

onReady()

onReady(listener: (panel: PanelHandle) => void): () => void;

Defined in: xrblocks-uiextensions/src/host.ts:110

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

Overrides

WindowHandle.onReady