cidre 0.11.4

Apple frameworks bindings for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{arc, define_obj_type, ns, objc, un};

define_obj_type!(
    #[doc(alias = "UNNotification")]
    pub Notification(ns::Id)
);

impl Notification {
    /// The date displayed on the notification.
    #[objc::msg_send(date)]
    pub fn date(&self) -> arc::R<ns::Data>;

    /// The notification request that caused the notification to be delivered.
    #[objc::msg_send(request)]
    pub fn request(&self) -> arc::R<un::NotificationRequest>;
}