win32_notif

Crates.iowin32_notif
lib.rswin32_notif
version0.4.0
sourcesrc
created_at2024-10-30 09:57:01.39925
updated_at2024-11-03 05:12:53.02907
descriptionWrapper around Windows UWP XAML (WinRT) Notification api
homepage
repositoryhttps://github.com/AHQ-Softwares/win32_notif
max_upload_size
id1428280
size52,583
AHQ (ahqsoftwares)

documentation

https://ahq-softwares.github.io/win32_notif/

README

Win32 Notif

A lightweight crate to help you to compose beautiful notifications for Windows OS.

Usage

use win32_notif::{Notif, NotifIcon, NotifState, NotifType, NotifFlags};

fn main() {
  let notifier = ToastsNotifier::new("windows app user model id").unwrap();

  let notif = NotificationBuilder::new()
    .visual(Text::new(2, None, None, string!("Hello There 👋🏼")))
    .action(ActionButton::new(
      string!("Yes"),
      string!("yes"),
      ActivationType::Foreground,
      AfterActivationBehavior::Default,
      None,
      string!("yes"),
      HintButtonStyle::Success,
      string!("Yes"),
      false
    ))
    .build(2, &*NOTIFIER, "tag", "group")
    .unwrap();

  notif.show().unwrap();
}
Commit count: 21

cargo fmt