Skip to main content

removePanelFromEvent()

Removes a host-built panel and its tab from the SDK.

Syntax​

removed = m.maestro.callFunc("removePanelFromEvent", panelType)

Parameters​

ParameterTypeDescription
panelTypestringThe 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​

  • endSession is 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 handleLoadingSceneAction to "returnFocus" instead: see Custom panels.
  • After removal, rendered:channels on onSDKEvent is sent with the updated panel list.
  • destroySDK also removes every host panel, as part of ending the session.
  • For the full contract and lifecycle of host-built panels, see Custom panels.