Expand description
Open files and URLs using their default application, and reveal files in the system’s file explorer.
Use the OpenerExt trait to access Opener::open_url and Opener::open_path from a
running Tauri app; the plugin’s open_url and open_path commands enforce the scope
configured for the plugin before delegating to them. The open_url and open_path free
functions and the Opener methods themselves do not perform any scope check.
reveal_item_in_dir and reveal_items_in_dir return Error::UnsupportedPlatform on
Android and iOS.
Structs§
- Builder
- The opener plugin Builder.
- Opener
- Access to the opener APIs, managed by the plugin as app state.
Enums§
- Error
- The error type returned by the opener plugin’s commands and APIs.
Traits§
- Opener
Ext - Extensions to
tauri::App,tauri::AppHandle,tauri::WebviewWindow,tauri::Webviewandtauri::Windowto access the opener APIs.
Functions§
- init
- Initializes the plugin.
- open_
path - Opens path with the program specified in
with, or system default ifNone. - open_
url - Opens URL with the program specified in
with, or system default ifNone. - reveal_
item_ in_ dir - Reveal a path in the system’s default explorer.
- reveal_
items_ in_ dir - Reveal multiple paths in the system’s default explorer.