removePanelFromEvent()
Removes a host-built panel and its tab from the SDK.
Syntax
removed = m.maestro.callFunc("removePanelFromEvent", panelType)
Parameters
| Parameter | Type | Description |
|---|---|---|
panelType | string | The panelType the panel was added with. Case-insensitive. |
Returns
boolean: true when the panel was removed; false when no panel of that type was found.
Example
' Maestro.brs
sub removeMyStatsPanel()
removed = m.maestro.callFunc("removePanelFromEvent", "myStats")
end sub
Notes
endSessionis called on the panel before it is detached.- If the viewer was inside the panel when it was removed, focus returns to the tab bar. In single-tab mode the SDK
sets
handleLoadingSceneActionto"returnFocus"instead: see Custom panels. - After removal,
rendered:channelsononSDKEventis sent with the updated panel list. destroySDKalso removes every host panel, as part of ending the session.- For the full contract and lifecycle of host-built panels, see Custom panels.