destroySDK()
Ends the SDK session and tears the SDK down before you remove the panel.
Syntax
succeeded = m.maestro.callFunc("destroySDK")
Parameters
This function takes no parameters.
Returns
boolean: true if the teardown succeeded; false if it failed.
Example
sub closeMaestro()
if m.maestro = invalid then return
m.maestro.callFunc("destroySDK")
removeMaestroModules() ' modules you mounted from fetchMaestroModule()
m.top.removeChild(m.maestro)
m.maestro = invalid
m.componentLibrary = invalid
end sub
Notes
- Sends the session-end analytics, stops every panel's timers, removes the SDK's own observers and hides the panel.
- Sets
isReadytofalse. - Call it before you remove the panel from the scene; your own observers on the node stay until you remove it.
- To end the session and keep the SDK running, use
endSession(). To start over on the same node, userestartSDK().