Function send_notification

Source
pub fn send_notification(
    title: &str,
    subtitle: Option<&str>,
    message: &str,
    options: Option<&Notification<'_>>,
) -> NotificationResult<NotificationResponse>
Expand description

Delivers a new notification

Returns a NotificationError if a notification could not be delivered

ยงExample:

// deliver a silent notification
let _ = send_notification("Title", None, "This is the body", None).unwrap();