objc2_user_notifications/generated/
UNNotificationAttachment.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 UNNotificationAttachment;
14);
15
16extern_conformance!(
17 unsafe impl NSCoding for UNNotificationAttachment {}
18);
19
20extern_conformance!(
21 unsafe impl NSCopying for UNNotificationAttachment {}
22);
23
24unsafe impl CopyingHelper for UNNotificationAttachment {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for UNNotificationAttachment {}
30);
31
32extern_conformance!(
33 unsafe impl NSSecureCoding for UNNotificationAttachment {}
34);
35
36impl UNNotificationAttachment {
37 extern_methods!(
38 #[unsafe(method(identifier))]
39 #[unsafe(method_family = none)]
40 pub fn identifier(&self) -> Retained<NSString>;
41
42 #[unsafe(method(URL))]
43 #[unsafe(method_family = none)]
44 pub fn URL(&self) -> Retained<NSURL>;
45
46 #[unsafe(method(type))]
47 #[unsafe(method_family = none)]
48 pub fn r#type(&self) -> Retained<NSString>;
49
50 #[unsafe(method(attachmentWithIdentifier:URL:options:error:_))]
54 #[unsafe(method_family = none)]
55 pub unsafe fn attachmentWithIdentifier_URL_options_error(
56 identifier: &NSString,
57 url: &NSURL,
58 options: Option<&NSDictionary>,
59 ) -> Result<Retained<Self>, Retained<NSError>>;
60
61 #[unsafe(method(init))]
62 #[unsafe(method_family = init)]
63 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
64 );
65}
66
67impl UNNotificationAttachment {
69 extern_methods!(
70 #[unsafe(method(new))]
71 #[unsafe(method_family = new)]
72 pub unsafe fn new() -> Retained<Self>;
73 );
74}
75
76extern "C" {
77 pub static UNNotificationAttachmentOptionsTypeHintKey: &'static NSString;
79}
80
81extern "C" {
82 pub static UNNotificationAttachmentOptionsThumbnailHiddenKey: &'static NSString;
84}
85
86extern "C" {
87 pub static UNNotificationAttachmentOptionsThumbnailClippingRectKey: &'static NSString;
89}
90
91extern "C" {
92 pub static UNNotificationAttachmentOptionsThumbnailTimeKey: &'static NSString;
94}