Skip to content

CommandHandler.onRegistered method

CommandHandler › onRegistered

Called after the command has been registered with Obsidian. Subclasses use the provided context to register menu event handlers.

Signature:

onRegistered(context: CommandHandlerRegistrationContext): Promise<void>

Parameters:

ParameterTypeDescription
contextCommandHandlerRegistrationContextThe registration context providing runtime capabilities.

Returns: Promise<void>