Expand description
Native system dialogs for opening and saving files along with message dialogs.
§Cargo features
- gtk3 (enabled by default): Uses GTK for dialogs on Linux & BSDs; has no effect on Windows and macOS
- xdg-portal: Uses XDG Desktop Portal instead of GTK on Linux & BSDs
Structs§
- Dialog
- Access to the dialog APIs.
- File
Dialog Builder - The file dialog builder.
- Message
Dialog Builder - A builder for message dialogs.
Enums§
- Error
- Errors that can occur while showing or interacting with a dialog.
- File
Access Mode - The file access mode of the dialog, used to control how a picked file is exposed to the app on iOS.
- File
Path - Represents either a filesystem path or a URI pointing to a file
such as
file://URIs or Androidcontent://URIs. - Message
Dialog Buttons - Set of button that will be displayed on the dialog
- Message
Dialog Kind - Types of message, ask and confirm dialogs.
- Message
Dialog Result - Result of a message dialog
- Picker
Mode - The preferred mode of the file picker on mobile platforms (iOS and Android), which have distinct file and media pickers. On desktop, this option is ignored.
Traits§
- Dialog
Ext - Extensions to
tauri::App,tauri::AppHandle,tauri::WebviewWindow,tauri::Webviewandtauri::Windowto access the dialog APIs.
Functions§
- init
- Initializes the plugin.
Type Aliases§
- Result
- Alias for
Result<T, Error>used throughout this crate.