objc2_user_notifications/generated/
UNNotificationActionIcon.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 UNNotificationActionIcon;
14);
15
16extern_conformance!(
17 unsafe impl NSCoding for UNNotificationActionIcon {}
18);
19
20extern_conformance!(
21 unsafe impl NSCopying for UNNotificationActionIcon {}
22);
23
24unsafe impl CopyingHelper for UNNotificationActionIcon {
25 type Result = Self;
26}
27
28extern_conformance!(
29 unsafe impl NSObjectProtocol for UNNotificationActionIcon {}
30);
31
32extern_conformance!(
33 unsafe impl NSSecureCoding for UNNotificationActionIcon {}
34);
35
36impl UNNotificationActionIcon {
37 extern_methods!(
38 #[unsafe(method(iconWithTemplateImageName:))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn iconWithTemplateImageName(template_image_name: &NSString) -> Retained<Self>;
41
42 #[unsafe(method(iconWithSystemImageName:))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn iconWithSystemImageName(system_image_name: &NSString) -> Retained<Self>;
45
46 #[unsafe(method(init))]
47 #[unsafe(method_family = init)]
48 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
49 );
50}
51
52impl UNNotificationActionIcon {
54 extern_methods!(
55 #[unsafe(method(new))]
56 #[unsafe(method_family = new)]
57 pub unsafe fn new() -> Retained<Self>;
58 );
59}