objc2_user_notifications/generated/
UNNotification.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct UNNotification;
14);
15
16extern_conformance!(
17 unsafe impl NSCoding for UNNotification {}
18);
19
20extern_conformance!(
21 unsafe impl NSCopying for UNNotification {}
22);
23
24unsafe impl CopyingHelper for UNNotification {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for UNNotification {}
30);
31
32extern_conformance!(
33 unsafe impl NSSecureCoding for UNNotification {}
34);
35
36impl UNNotification {
37 extern_methods!(
38 #[unsafe(method(date))]
39 #[unsafe(method_family = none)]
40 pub fn date(&self) -> Retained<NSDate>;
41
42 #[cfg(feature = "UNNotificationRequest")]
43 #[unsafe(method(request))]
44 #[unsafe(method_family = none)]
45 pub fn request(&self) -> Retained<UNNotificationRequest>;
46
47 #[unsafe(method(init))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50 );
51}
52
53impl UNNotification {
55 extern_methods!(
56 #[unsafe(method(new))]
57 #[unsafe(method_family = new)]
58 pub unsafe fn new() -> Retained<Self>;
59 );
60}