Expand description
Win32 Notification
This library implements UWP XML Toast Notification This is a safe wrapper around the official WinRT apis
§Example
use win32_notif::{
notification::visual::progress::{Progress, ProgressValue},
string, NotificationBuilder, ToastsNotifier,
};
fn main() {
let notifier = ToastsNotifier::new("Microsoft.Windows.Explorer").unwrap();
let notif = NotificationBuilder::new()
.visual(Progress::new(
None,
string!("Downloading..."),
ProgressValue::BindTo("prog"),
None,
))
// Use the newest data binding method
.value("prog", "0.3")
.build(1, ¬ifier, "a", "ahq")
.unwrap();
let _ = notif.show();
loop {}
}Modules§
Macros§
- string
- Creates a reference to a value in notification
Structs§
- Notification
- The Notification Object
- Notification
Activated Event Handler - Notification
Builder - The way to build a Notification
- Notification
Data Set - Notification
Dismissed Event Handler - Notification
Failed Event Handler - Toasts
Notifier