tauri-impl-plugin-development
Installation
SKILL.md
tauri-impl-plugin-development
Quick Reference
Plugin Builder API
| Method | Purpose | Example |
|---|---|---|
Builder::new("name") |
Create plugin builder | Builder::new("my-plugin") |
.invoke_handler() |
Register plugin commands | .invoke_handler(generate_handler![cmd]) |
.setup() |
Plugin initialization hook | .setup(|app, api| { Ok(()) }) |
.on_event() |
App event handler | .on_event(|app, event| { }) |
.on_navigation() |
Webview navigation filter | .on_navigation(|window, url| true) |
.on_webview_ready() |
Webview ready hook | .on_webview_ready(|window| { }) |
.on_drop() |
Plugin cleanup hook | .on_drop(|app| { }) |
.build() |
Finalize and return TauriPlugin | .build() |