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,
string, NotificationBuilder, ToastsNotifier,
};
fn main() {
let notifier = ToastsNotifier::new("Microsoft.Windows.Explorer").unwrap();
let notif = NotificationBuilder::new()
.visual(Progress::new(
None,
string!("Downloading..."),
string!("0.30"),
None,
))
.build(1, ¬ifier, "a", "ahq")
.unwrap();
let _ = notif.show();
loop {}
}
Modules§
Macros§
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