Skip to main content

Crate tauri_plugin_dialog

Crate tauri_plugin_dialog 

Source
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.
FileDialogBuilder
The file dialog builder.
MessageDialogBuilder
A builder for message dialogs.

Enums§

Error
Errors that can occur while showing or interacting with a dialog.
FileAccessMode
The file access mode of the dialog, used to control how a picked file is exposed to the app on iOS.
FilePath
Represents either a filesystem path or a URI pointing to a file such as file:// URIs or Android content:// URIs.
MessageDialogButtons
Set of button that will be displayed on the dialog
MessageDialogKind
Types of message, ask and confirm dialogs.
MessageDialogResult
Result of a message dialog
PickerMode
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§

DialogExt
Extensions to tauri::App, tauri::AppHandle, tauri::WebviewWindow, tauri::Webview and tauri::Window to access the dialog APIs.

Functions§

init
Initializes the plugin.

Type Aliases§

Result
Alias for Result<T, Error> used throughout this crate.