objc2_intents/generated/
INAppendToNoteIntent.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(INIntent, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "INIntent")]
15 #[deprecated = "INAppendToNoteIntent is deprecated. There is no replacement."]
16 pub struct INAppendToNoteIntent;
17);
18
19#[cfg(feature = "INIntent")]
20extern_conformance!(
21 unsafe impl NSCoding for INAppendToNoteIntent {}
22);
23
24#[cfg(feature = "INIntent")]
25extern_conformance!(
26 unsafe impl NSCopying for INAppendToNoteIntent {}
27);
28
29#[cfg(feature = "INIntent")]
30unsafe impl CopyingHelper for INAppendToNoteIntent {
31 type Result = Self;
32}
33
34#[cfg(feature = "INIntent")]
35extern_conformance!(
36 unsafe impl NSObjectProtocol for INAppendToNoteIntent {}
37);
38
39#[cfg(feature = "INIntent")]
40extern_conformance!(
41 unsafe impl NSSecureCoding for INAppendToNoteIntent {}
42);
43
44#[cfg(feature = "INIntent")]
45impl INAppendToNoteIntent {
46 extern_methods!(
47 #[cfg(all(feature = "INNote", feature = "INNoteContent"))]
48 #[deprecated = "INAppendToNoteIntent is deprecated. There is no replacement."]
49 #[unsafe(method(initWithTargetNote:content:))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn initWithTargetNote_content(
52 this: Allocated<Self>,
53 target_note: Option<&INNote>,
54 content: Option<&INNoteContent>,
55 ) -> Retained<Self>;
56
57 #[cfg(feature = "INNote")]
58 #[deprecated = "INAppendToNoteIntent is deprecated. There is no replacement."]
59 #[unsafe(method(targetNote))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn targetNote(&self) -> Option<Retained<INNote>>;
62
63 #[cfg(feature = "INNoteContent")]
64 #[deprecated = "INAppendToNoteIntent is deprecated. There is no replacement."]
65 #[unsafe(method(content))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn content(&self) -> Option<Retained<INNoteContent>>;
68 );
69}
70
71#[cfg(feature = "INIntent")]
73impl INAppendToNoteIntent {
74 extern_methods!(
75 #[unsafe(method(init))]
76 #[unsafe(method_family = init)]
77 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
78
79 #[unsafe(method(new))]
80 #[unsafe(method_family = new)]
81 pub unsafe fn new() -> Retained<Self>;
82 );
83}
84
85extern_protocol!(
86 #[deprecated = "INAppendToNoteIntentHandling is deprecated. There is no replacement."]
92 pub unsafe trait INAppendToNoteIntentHandling: NSObjectProtocol {
93 #[cfg(all(
94 feature = "INAppendToNoteIntentResponse",
95 feature = "INIntent",
96 feature = "INIntentResponse",
97 feature = "block2"
98 ))]
99 #[deprecated = "INAppendToNoteIntentHandling is deprecated. There is no replacement."]
111 #[unsafe(method(handleAppendToNote:completion:))]
112 #[unsafe(method_family = none)]
113 unsafe fn handleAppendToNote_completion(
114 &self,
115 intent: &INAppendToNoteIntent,
116 completion: &block2::DynBlock<dyn Fn(NonNull<INAppendToNoteIntentResponse>)>,
117 );
118
119 #[cfg(all(
120 feature = "INAppendToNoteIntentResponse",
121 feature = "INIntent",
122 feature = "INIntentResponse",
123 feature = "block2"
124 ))]
125 #[deprecated = "INAppendToNoteIntentHandling is deprecated. There is no replacement."]
137 #[optional]
138 #[unsafe(method(confirmAppendToNote:completion:))]
139 #[unsafe(method_family = none)]
140 unsafe fn confirmAppendToNote_completion(
141 &self,
142 intent: &INAppendToNoteIntent,
143 completion: &block2::DynBlock<dyn Fn(NonNull<INAppendToNoteIntentResponse>)>,
144 );
145
146 #[cfg(all(
147 feature = "INIntent",
148 feature = "INIntentResolutionResult",
149 feature = "INNoteResolutionResult",
150 feature = "block2"
151 ))]
152 #[deprecated = "INAppendToNoteIntentHandling is deprecated. There is no replacement."]
164 #[optional]
165 #[unsafe(method(resolveTargetNoteForAppendToNote:withCompletion:))]
166 #[unsafe(method_family = none)]
167 unsafe fn resolveTargetNoteForAppendToNote_withCompletion(
168 &self,
169 intent: &INAppendToNoteIntent,
170 completion: &block2::DynBlock<dyn Fn(NonNull<INNoteResolutionResult>)>,
171 );
172
173 #[cfg(all(
174 feature = "INIntent",
175 feature = "INIntentResolutionResult",
176 feature = "INNoteContentResolutionResult",
177 feature = "block2"
178 ))]
179 #[deprecated = "INAppendToNoteIntentHandling is deprecated. There is no replacement."]
180 #[optional]
181 #[unsafe(method(resolveContentForAppendToNote:withCompletion:))]
182 #[unsafe(method_family = none)]
183 unsafe fn resolveContentForAppendToNote_withCompletion(
184 &self,
185 intent: &INAppendToNoteIntent,
186 completion: &block2::DynBlock<dyn Fn(NonNull<INNoteContentResolutionResult>)>,
187 );
188 }
189);