objc2_intents/generated/
INSetSeatSettingsInCarIntent.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/intents/insetseatsettingsincarintent?language=objc)
12    #[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/// Methods declared on superclass `NSObject`.
105#[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    /// Protocol to declare support for handling an INSetSeatSettingsInCarIntent. By implementing this protocol, a class can provide logic for resolving, confirming and handling the intent.
120    ///
121    /// The minimum requirement for an implementing class is that it should be able to handle the intent. The resolution and confirmation methods are optional. The handling method is always called last, after resolving and confirming the intent.
122    ///
123    /// See also [Apple's documentation](https://developer.apple.com/documentation/intents/insetseatsettingsincarintenthandling?language=objc)
124    #[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        /// Handling method - Execute the task represented by the INSetSeatSettingsInCarIntent that's passed in
133        ///
134        /// Called to actually execute the intent. The app must return a response for this intent.
135        ///
136        ///
137        /// Parameter `intent`: The input intent
138        ///
139        /// Parameter `completion`: The response handling block takes a INSetSeatSettingsInCarIntentResponse containing the details of the result of having executed the intent
140        ///
141        ///
142        /// See: INSetSeatSettingsInCarIntentResponse
143        #[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        /// Confirmation method - Validate that this intent is ready for the next step (i.e. handling)
159        ///
160        /// Called prior to asking the app to handle the intent. The app should return a response object that contains additional information about the intent, which may be relevant for the system to show the user prior to handling. If unimplemented, the system will assume the intent is valid following resolution, and will assume there is no additional information relevant to this intent.
161        ///
162        ///
163        /// Parameter `intent`: The input intent
164        ///
165        /// Parameter `completion`: The response block contains an INSetSeatSettingsInCarIntentResponse containing additional details about the intent that may be relevant for the system to show the user prior to handling.
166        ///
167        ///
168        /// See: INSetSeatSettingsInCarIntentResponse
169        #[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        /// Resolution methods - Determine if this intent is ready for the next step (confirmation)
186        ///
187        /// Called to make sure the app extension is capable of handling this intent in its current form. This method is for validating if the intent needs any further fleshing out.
188        ///
189        ///
190        /// Parameter `intent`: The input intent
191        ///
192        /// Parameter `completion`: The response block contains an INIntentResolutionResult for the parameter being resolved
193        ///
194        ///
195        /// See: INIntentResolutionResult
196        #[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);