pub fn message<R: Runtime>(
parent_window: Option<&Window<R>>,
title: impl AsRef<str>,
message: impl AsRef<str>
)
Available on crate feature
dialog
only.Expand description
Displays a message dialog and wait for it to be closed.
This is a blocking operation, and should NOT be used when running on the main thread context.
Examples
use tauri::api::dialog::blocking::message;
message(Some(&window), "Tauri", "Tauri is awesome!");