objc2_intents/generated/
INMessageReaction.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inmessagereaction?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct INMessageReaction;
14);
15
16extern_conformance!(
17    unsafe impl NSCoding for INMessageReaction {}
18);
19
20extern_conformance!(
21    unsafe impl NSCopying for INMessageReaction {}
22);
23
24unsafe impl CopyingHelper for INMessageReaction {
25    type Result = Self;
26}
27
28extern_conformance!(
29    unsafe impl NSObjectProtocol for INMessageReaction {}
30);
31
32extern_conformance!(
33    unsafe impl NSSecureCoding for INMessageReaction {}
34);
35
36impl INMessageReaction {
37    extern_methods!(
38        #[cfg(feature = "INMessageReactionType")]
39        #[unsafe(method(initWithReactionType:reactionDescription:emoji:))]
40        #[unsafe(method_family = init)]
41        pub unsafe fn initWithReactionType_reactionDescription_emoji(
42            this: Allocated<Self>,
43            reaction_type: INMessageReactionType,
44            reaction_description: Option<&NSString>,
45            emoji: Option<&NSString>,
46        ) -> Retained<Self>;
47
48        #[cfg(feature = "INMessageReactionType")]
49        #[unsafe(method(reactionType))]
50        #[unsafe(method_family = none)]
51        pub unsafe fn reactionType(&self) -> INMessageReactionType;
52
53        #[unsafe(method(reactionDescription))]
54        #[unsafe(method_family = none)]
55        pub unsafe fn reactionDescription(&self) -> Option<Retained<NSString>>;
56
57        #[unsafe(method(emoji))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn emoji(&self) -> Option<Retained<NSString>>;
60    );
61}
62
63/// Methods declared on superclass `NSObject`.
64impl INMessageReaction {
65    extern_methods!(
66        #[unsafe(method(init))]
67        #[unsafe(method_family = init)]
68        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
69
70        #[unsafe(method(new))]
71        #[unsafe(method_family = new)]
72        pub unsafe fn new() -> Retained<Self>;
73    );
74}