Skip to content

CommandHandlerComponent.setCommandSwitches method

CommandHandlerComponent › setCommandSwitches

Attaches the user's command switches, which every handler registered through this component reads each time a menu is built, or detaches them with ull. Handlers registered before the call see it too.

PluginSettingsTabComponent calls it on load and unload; nothing else should.

Signature:

setCommandSwitches(commandSwitches: CommandSwitches | null): void

Parameters:

ParameterTypeDescription
commandSwitchesCommandSwitches | nullThe switches, or ull to detach them.

Returns: void