objc2_shared_with_you/generated/
SWHighlightMentionEvent.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#[cfg(feature = "objc2-shared-with-you-core")]
7use objc2_shared_with_you_core::*;
8
9use crate::*;
10
11extern_class!(
12    /// A model object representing a mention event that has happened on some content.
13    ///
14    /// See also [Apple's documentation](https://developer.apple.com/documentation/sharedwithyou/swhighlightmentionevent?language=objc)
15    #[unsafe(super(NSObject))]
16    #[derive(Debug, PartialEq, Eq, Hash)]
17    pub struct SWHighlightMentionEvent;
18);
19
20extern_conformance!(
21    unsafe impl NSCoding for SWHighlightMentionEvent {}
22);
23
24extern_conformance!(
25    unsafe impl NSCopying for SWHighlightMentionEvent {}
26);
27
28unsafe impl CopyingHelper for SWHighlightMentionEvent {
29    type Result = Self;
30}
31
32extern_conformance!(
33    unsafe impl NSObjectProtocol for SWHighlightMentionEvent {}
34);
35
36extern_conformance!(
37    unsafe impl NSSecureCoding for SWHighlightMentionEvent {}
38);
39
40#[cfg(feature = "SWHighlightEvent")]
41extern_conformance!(
42    unsafe impl SWHighlightEvent for SWHighlightMentionEvent {}
43);
44
45impl SWHighlightMentionEvent {
46    extern_methods!(
47        /// The person being mentioned by the sender.
48        #[unsafe(method(mentionedPersonHandle))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn mentionedPersonHandle(&self) -> Retained<NSString>;
51
52        #[cfg(feature = "SWHighlight")]
53        /// Initializes a highlight mention event object when the sender mentions another participant.
54        ///
55        /// Parameter `highlight`: The object on which the event occurred.
56        ///
57        /// Parameter `handle`: The CloudKit handle of the person being mentioned by the sender.
58        #[unsafe(method(initWithHighlight:mentionedPersonCloudKitShareHandle:))]
59        #[unsafe(method_family = init)]
60        pub unsafe fn initWithHighlight_mentionedPersonCloudKitShareHandle(
61            this: Allocated<Self>,
62            highlight: &SWHighlight,
63            handle: &NSString,
64        ) -> Retained<Self>;
65
66        #[cfg(all(feature = "SWHighlight", feature = "objc2-shared-with-you-core"))]
67        /// Initializes a highlight mention event object when the sender mentions another participant.
68        ///
69        /// Parameter `highlight`: The object on which the event occurred.
70        ///
71        /// Parameter `identity`: The identity of the person being mentioned by the sender.
72        #[unsafe(method(initWithHighlight:mentionedPersonIdentity:))]
73        #[unsafe(method_family = init)]
74        pub unsafe fn initWithHighlight_mentionedPersonIdentity(
75            this: Allocated<Self>,
76            highlight: &SWHighlight,
77            identity: &SWPersonIdentity,
78        ) -> Retained<Self>;
79
80        #[unsafe(method(init))]
81        #[unsafe(method_family = init)]
82        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
83
84        #[unsafe(method(new))]
85        #[unsafe(method_family = new)]
86        pub unsafe fn new() -> Retained<Self>;
87    );
88}