Crate win32_notif

Source
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, &notifier, "a", "ahq")
    .unwrap();

  let _ = notif.show();
  loop {}
}

Modules§

data
handler
notification
notifier

Macros§

mktrait
string
Creates a reference to a value in notification

Structs§

Notification
The Notification Object
NotificationActivatedEventHandler
NotificationBuilder
The way to build a Notification
NotificationDataSet
NotificationDismissedEventHandler
NotificationFailedEventHandler
ToastsNotifier

Enums§

NotifError
NotificationMirroring
NotificationPriority

Traits§

ManageNotification
NotificationImpl
ToXMLunsafe
OSZAR »