Plugin › registerObsidianProtocolHandler
Plugin.registerObsidianProtocolHandler() method
Register a handler for obsidian:// URLs.
Signature:
registerObsidianProtocolHandler(action: string, handler: ObsidianProtocolHandler): void;Parameters
| Parameter | Type | Description |
|---|---|---|
action | string | the action string. For example, ‘open’ corresponds to obsidian://open. |
handler | ObsidianProtocolHandler | the callback to trigger. A key-value pair that is decoded from the query will be passed in. For example, obsidian://open?key=value would generate {‘action’: ‘open’, ‘key’: ‘value’}. |
Returns:
void