pub fn message<R: Runtime>(
    parent_window: Option<&Window<R>>,
    title: impl AsRef<str>,
    message: impl AsRef<str>
)
Available on desktop and crate feature dialog only.
Expand description

Displays a non-blocking message dialog.

This is not a blocking operation, and should be used when running on the main thread to avoid deadlocks with the event loop.

Examples

use tauri::api::dialog::message;
message(Some(&window), "Tauri", "Tauri is awesome!");