HandleURL
当 Sketch 使用以下 URL 方案打开时触发:sketch://plugin/my.plugin.identifier/my.command.identifier.
操作上下文
此操作的操作上下文包含三个键
url: 触发此操作的 NSURL。path: 包含sketch://plugin之后的所有内容的字符串(例如/my.plugin.identifier/my.command.identifier)。query: 包含 URL 查询的对象(例如,对于sketch://plugin/my.plugin.identifier/my.command.identifier?foo=bar&baz=qux,query将为{ foo: 'bar', baz: 'quz' })。
上次更新:2024-07-25 08:43:34 +0000