Switch to given mode if authorized. Closes current mode and related toolbox.
The mode to switch to
Callback when the mode is closed
Generated using TypeDoc
Switch to given mode if authorized. Closes current mode and related toolbox.