Plugin.registerObsidianProtocolHandler method
Plugin › registerObsidianProtocolHandler
Official
Register a handler for obsidian:// URLs.Signature:
registerObsidianProtocolHandler(action: string, handler: ObsidianProtocolHandler): voidParameters:
| 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
Since: 0.11.0