Shiny Language Reference

Language Reference > Handler Reference


Shutdown

 

 

Called when the plugin is unloaded

When an SSE is unloaded (either by Brass or by the user), this is the first handler called. You may perform any cleanup necessary here, although be aware that the registry profile has not been written yet. Therefore if you destroy any data in this handler, do not use it in any of the RegWrite handlers. It is generally recommended to free resources in this handler (for example, close an open file) but to reset any variables or data in the ShutdownEnd handler.

When using the 100% Configuration System for your plugin's panel layout, you should generally call savelayout as the last statement in this handler.

The handler call order is as follows:

Shutdown -> PreRegWrite -> RegWrite -> PostRegWrite -> ShutdownEnd
Shutdown -> PreRegWrite -> PostRegWriteFail -> ShutdownEnd

 

Parameters

None