Module cacao::user_notifications
source · [−]Available on crate feature
user-notifications
only.Expand description
Wraps UNUserNotificationCenter for macOS. Note that this uses the newer
UserNotifications.framework
API, which requires that your application be properly signed.
To use this module, you must specify the user-notifications
feature flag in your
Cargo.toml
.
Re-exports
pub use enums::NotificationAuthOption;
pub use notifications::Notification;
Modules
Enums used in notifications - e.g, for customizing registration or appearance.
Acts as a (currently dumb) wrapper for UNMutableNotificationContent
, which is what you mostly
need to pass to the notification center for things to work.
Structs
Acts as a central interface to the Notification Center on macOS.