objc2_intents/generated/
INSetSeatSettingsInCarIntent.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 = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
16 pub struct INSetSeatSettingsInCarIntent;
17);
18
19#[cfg(feature = "INIntent")]
20extern_conformance!(
21 unsafe impl NSCoding for INSetSeatSettingsInCarIntent {}
22);
23
24#[cfg(feature = "INIntent")]
25extern_conformance!(
26 unsafe impl NSCopying for INSetSeatSettingsInCarIntent {}
27);
28
29#[cfg(feature = "INIntent")]
30unsafe impl CopyingHelper for INSetSeatSettingsInCarIntent {
31 type Result = Self;
32}
33
34#[cfg(feature = "INIntent")]
35extern_conformance!(
36 unsafe impl NSObjectProtocol for INSetSeatSettingsInCarIntent {}
37);
38
39#[cfg(feature = "INIntent")]
40extern_conformance!(
41 unsafe impl NSSecureCoding for INSetSeatSettingsInCarIntent {}
42);
43
44#[cfg(feature = "INIntent")]
45impl INSetSeatSettingsInCarIntent {
46 extern_methods!(
47 #[cfg(all(
48 feature = "INCarSeat",
49 feature = "INRelativeSetting",
50 feature = "INSpeakableString"
51 ))]
52 #[unsafe(method(initWithEnableHeating:enableCooling:enableMassage:seat:level:relativeLevelSetting:carName:))]
53 #[unsafe(method_family = init)]
54 pub unsafe fn initWithEnableHeating_enableCooling_enableMassage_seat_level_relativeLevelSetting_carName(
55 this: Allocated<Self>,
56 enable_heating: Option<&NSNumber>,
57 enable_cooling: Option<&NSNumber>,
58 enable_massage: Option<&NSNumber>,
59 seat: INCarSeat,
60 level: Option<&NSNumber>,
61 relative_level_setting: INRelativeSetting,
62 car_name: Option<&INSpeakableString>,
63 ) -> Retained<Self>;
64
65 #[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
66 #[unsafe(method(enableHeating))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn enableHeating(&self) -> Option<Retained<NSNumber>>;
69
70 #[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
71 #[unsafe(method(enableCooling))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn enableCooling(&self) -> Option<Retained<NSNumber>>;
74
75 #[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
76 #[unsafe(method(enableMassage))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn enableMassage(&self) -> Option<Retained<NSNumber>>;
79
80 #[cfg(feature = "INCarSeat")]
81 #[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
82 #[unsafe(method(seat))]
83 #[unsafe(method_family = none)]
84 pub unsafe fn seat(&self) -> INCarSeat;
85
86 #[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
87 #[unsafe(method(level))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn level(&self) -> Option<Retained<NSNumber>>;
90
91 #[cfg(feature = "INRelativeSetting")]
92 #[deprecated = "INSetSeatSettingsInCarIntent is deprecated. There is no replacement."]
93 #[unsafe(method(relativeLevelSetting))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn relativeLevelSetting(&self) -> INRelativeSetting;
96
97 #[cfg(feature = "INSpeakableString")]
98 #[unsafe(method(carName))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn carName(&self) -> Option<Retained<INSpeakableString>>;
101 );
102}
103
104#[cfg(feature = "INIntent")]
106impl INSetSeatSettingsInCarIntent {
107 extern_methods!(
108 #[unsafe(method(init))]
109 #[unsafe(method_family = init)]
110 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
111
112 #[unsafe(method(new))]
113 #[unsafe(method_family = new)]
114 pub unsafe fn new() -> Retained<Self>;
115 );
116}
117
118extern_protocol!(
119 #[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
125 pub unsafe trait INSetSeatSettingsInCarIntentHandling: NSObjectProtocol {
126 #[cfg(all(
127 feature = "INIntent",
128 feature = "INIntentResponse",
129 feature = "INSetSeatSettingsInCarIntentResponse",
130 feature = "block2"
131 ))]
132 #[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
144 #[unsafe(method(handleSetSeatSettingsInCar:completion:))]
145 #[unsafe(method_family = none)]
146 unsafe fn handleSetSeatSettingsInCar_completion(
147 &self,
148 intent: &INSetSeatSettingsInCarIntent,
149 completion: &block2::DynBlock<dyn Fn(NonNull<INSetSeatSettingsInCarIntentResponse>)>,
150 );
151
152 #[cfg(all(
153 feature = "INIntent",
154 feature = "INIntentResponse",
155 feature = "INSetSeatSettingsInCarIntentResponse",
156 feature = "block2"
157 ))]
158 #[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
170 #[optional]
171 #[unsafe(method(confirmSetSeatSettingsInCar:completion:))]
172 #[unsafe(method_family = none)]
173 unsafe fn confirmSetSeatSettingsInCar_completion(
174 &self,
175 intent: &INSetSeatSettingsInCarIntent,
176 completion: &block2::DynBlock<dyn Fn(NonNull<INSetSeatSettingsInCarIntentResponse>)>,
177 );
178
179 #[cfg(all(
180 feature = "INBooleanResolutionResult",
181 feature = "INIntent",
182 feature = "INIntentResolutionResult",
183 feature = "block2"
184 ))]
185 #[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
197 #[optional]
198 #[unsafe(method(resolveEnableHeatingForSetSeatSettingsInCar:withCompletion:))]
199 #[unsafe(method_family = none)]
200 unsafe fn resolveEnableHeatingForSetSeatSettingsInCar_withCompletion(
201 &self,
202 intent: &INSetSeatSettingsInCarIntent,
203 completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
204 );
205
206 #[cfg(all(
207 feature = "INBooleanResolutionResult",
208 feature = "INIntent",
209 feature = "INIntentResolutionResult",
210 feature = "block2"
211 ))]
212 #[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
213 #[optional]
214 #[unsafe(method(resolveEnableCoolingForSetSeatSettingsInCar:withCompletion:))]
215 #[unsafe(method_family = none)]
216 unsafe fn resolveEnableCoolingForSetSeatSettingsInCar_withCompletion(
217 &self,
218 intent: &INSetSeatSettingsInCarIntent,
219 completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
220 );
221
222 #[cfg(all(
223 feature = "INBooleanResolutionResult",
224 feature = "INIntent",
225 feature = "INIntentResolutionResult",
226 feature = "block2"
227 ))]
228 #[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
229 #[optional]
230 #[unsafe(method(resolveEnableMassageForSetSeatSettingsInCar:withCompletion:))]
231 #[unsafe(method_family = none)]
232 unsafe fn resolveEnableMassageForSetSeatSettingsInCar_withCompletion(
233 &self,
234 intent: &INSetSeatSettingsInCarIntent,
235 completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
236 );
237
238 #[cfg(all(
239 feature = "INCarSeatResolutionResult",
240 feature = "INIntent",
241 feature = "INIntentResolutionResult",
242 feature = "block2"
243 ))]
244 #[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
245 #[optional]
246 #[unsafe(method(resolveSeatForSetSeatSettingsInCar:withCompletion:))]
247 #[unsafe(method_family = none)]
248 unsafe fn resolveSeatForSetSeatSettingsInCar_withCompletion(
249 &self,
250 intent: &INSetSeatSettingsInCarIntent,
251 completion: &block2::DynBlock<dyn Fn(NonNull<INCarSeatResolutionResult>)>,
252 );
253
254 #[cfg(all(
255 feature = "INIntegerResolutionResult",
256 feature = "INIntent",
257 feature = "INIntentResolutionResult",
258 feature = "block2"
259 ))]
260 #[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
261 #[optional]
262 #[unsafe(method(resolveLevelForSetSeatSettingsInCar:withCompletion:))]
263 #[unsafe(method_family = none)]
264 unsafe fn resolveLevelForSetSeatSettingsInCar_withCompletion(
265 &self,
266 intent: &INSetSeatSettingsInCarIntent,
267 completion: &block2::DynBlock<dyn Fn(NonNull<INIntegerResolutionResult>)>,
268 );
269
270 #[cfg(all(
271 feature = "INIntent",
272 feature = "INIntentResolutionResult",
273 feature = "INRelativeSettingResolutionResult",
274 feature = "block2"
275 ))]
276 #[deprecated = "INSetSeatSettingsInCarIntentHandling is deprecated. There is no replacement."]
277 #[optional]
278 #[unsafe(method(resolveRelativeLevelSettingForSetSeatSettingsInCar:withCompletion:))]
279 #[unsafe(method_family = none)]
280 unsafe fn resolveRelativeLevelSettingForSetSeatSettingsInCar_withCompletion(
281 &self,
282 intent: &INSetSeatSettingsInCarIntent,
283 completion: &block2::DynBlock<dyn Fn(NonNull<INRelativeSettingResolutionResult>)>,
284 );
285
286 #[cfg(all(
287 feature = "INIntent",
288 feature = "INIntentResolutionResult",
289 feature = "INSpeakableStringResolutionResult",
290 feature = "block2"
291 ))]
292 #[optional]
293 #[unsafe(method(resolveCarNameForSetSeatSettingsInCar:withCompletion:))]
294 #[unsafe(method_family = none)]
295 unsafe fn resolveCarNameForSetSeatSettingsInCar_withCompletion(
296 &self,
297 intent: &INSetSeatSettingsInCarIntent,
298 completion: &block2::DynBlock<dyn Fn(NonNull<INSpeakableStringResolutionResult>)>,
299 );
300 }
301);