objc2_intents/generated/
INSetDefrosterSettingsInCarIntent.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 = "INSetDefrosterSettingsInCarIntent is deprecated. There is no replacement."]
16 pub struct INSetDefrosterSettingsInCarIntent;
17);
18
19#[cfg(feature = "INIntent")]
20extern_conformance!(
21 unsafe impl NSCoding for INSetDefrosterSettingsInCarIntent {}
22);
23
24#[cfg(feature = "INIntent")]
25extern_conformance!(
26 unsafe impl NSCopying for INSetDefrosterSettingsInCarIntent {}
27);
28
29#[cfg(feature = "INIntent")]
30unsafe impl CopyingHelper for INSetDefrosterSettingsInCarIntent {
31 type Result = Self;
32}
33
34#[cfg(feature = "INIntent")]
35extern_conformance!(
36 unsafe impl NSObjectProtocol for INSetDefrosterSettingsInCarIntent {}
37);
38
39#[cfg(feature = "INIntent")]
40extern_conformance!(
41 unsafe impl NSSecureCoding for INSetDefrosterSettingsInCarIntent {}
42);
43
44#[cfg(feature = "INIntent")]
45impl INSetDefrosterSettingsInCarIntent {
46 extern_methods!(
47 #[cfg(all(feature = "INCarDefroster", feature = "INSpeakableString"))]
48 #[unsafe(method(initWithEnable:defroster:carName:))]
49 #[unsafe(method_family = init)]
50 pub unsafe fn initWithEnable_defroster_carName(
51 this: Allocated<Self>,
52 enable: Option<&NSNumber>,
53 defroster: INCarDefroster,
54 car_name: Option<&INSpeakableString>,
55 ) -> Retained<Self>;
56
57 #[deprecated = "INSetDefrosterSettingsInCarIntent is deprecated. There is no replacement."]
58 #[unsafe(method(enable))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn enable(&self) -> Option<Retained<NSNumber>>;
61
62 #[cfg(feature = "INCarDefroster")]
63 #[deprecated = "INSetDefrosterSettingsInCarIntent is deprecated. There is no replacement."]
64 #[unsafe(method(defroster))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn defroster(&self) -> INCarDefroster;
67
68 #[cfg(feature = "INSpeakableString")]
69 #[unsafe(method(carName))]
70 #[unsafe(method_family = none)]
71 pub unsafe fn carName(&self) -> Option<Retained<INSpeakableString>>;
72 );
73}
74
75#[cfg(feature = "INIntent")]
77impl INSetDefrosterSettingsInCarIntent {
78 extern_methods!(
79 #[unsafe(method(init))]
80 #[unsafe(method_family = init)]
81 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
82
83 #[unsafe(method(new))]
84 #[unsafe(method_family = new)]
85 pub unsafe fn new() -> Retained<Self>;
86 );
87}
88
89extern_protocol!(
90 #[deprecated = "INSetDefrosterSettingsInCarIntentHandling is deprecated. There is no replacement."]
96 pub unsafe trait INSetDefrosterSettingsInCarIntentHandling: NSObjectProtocol {
97 #[cfg(all(
98 feature = "INIntent",
99 feature = "INIntentResponse",
100 feature = "INSetDefrosterSettingsInCarIntentResponse",
101 feature = "block2"
102 ))]
103 #[deprecated = "INSetDefrosterSettingsInCarIntentHandling is deprecated. There is no replacement."]
115 #[unsafe(method(handleSetDefrosterSettingsInCar:completion:))]
116 #[unsafe(method_family = none)]
117 unsafe fn handleSetDefrosterSettingsInCar_completion(
118 &self,
119 intent: &INSetDefrosterSettingsInCarIntent,
120 completion: &block2::DynBlock<
121 dyn Fn(NonNull<INSetDefrosterSettingsInCarIntentResponse>),
122 >,
123 );
124
125 #[cfg(all(
126 feature = "INIntent",
127 feature = "INIntentResponse",
128 feature = "INSetDefrosterSettingsInCarIntentResponse",
129 feature = "block2"
130 ))]
131 #[deprecated = "INSetDefrosterSettingsInCarIntentHandling is deprecated. There is no replacement."]
143 #[optional]
144 #[unsafe(method(confirmSetDefrosterSettingsInCar:completion:))]
145 #[unsafe(method_family = none)]
146 unsafe fn confirmSetDefrosterSettingsInCar_completion(
147 &self,
148 intent: &INSetDefrosterSettingsInCarIntent,
149 completion: &block2::DynBlock<
150 dyn Fn(NonNull<INSetDefrosterSettingsInCarIntentResponse>),
151 >,
152 );
153
154 #[cfg(all(
155 feature = "INBooleanResolutionResult",
156 feature = "INIntent",
157 feature = "INIntentResolutionResult",
158 feature = "block2"
159 ))]
160 #[deprecated = "INSetDefrosterSettingsInCarIntentHandling is deprecated. There is no replacement."]
172 #[optional]
173 #[unsafe(method(resolveEnableForSetDefrosterSettingsInCar:withCompletion:))]
174 #[unsafe(method_family = none)]
175 unsafe fn resolveEnableForSetDefrosterSettingsInCar_withCompletion(
176 &self,
177 intent: &INSetDefrosterSettingsInCarIntent,
178 completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
179 );
180
181 #[cfg(all(
182 feature = "INCarDefrosterResolutionResult",
183 feature = "INIntent",
184 feature = "INIntentResolutionResult",
185 feature = "block2"
186 ))]
187 #[deprecated = "INSetDefrosterSettingsInCarIntentHandling is deprecated. There is no replacement."]
188 #[optional]
189 #[unsafe(method(resolveDefrosterForSetDefrosterSettingsInCar:withCompletion:))]
190 #[unsafe(method_family = none)]
191 unsafe fn resolveDefrosterForSetDefrosterSettingsInCar_withCompletion(
192 &self,
193 intent: &INSetDefrosterSettingsInCarIntent,
194 completion: &block2::DynBlock<dyn Fn(NonNull<INCarDefrosterResolutionResult>)>,
195 );
196
197 #[cfg(all(
198 feature = "INIntent",
199 feature = "INIntentResolutionResult",
200 feature = "INSpeakableStringResolutionResult",
201 feature = "block2"
202 ))]
203 #[optional]
204 #[unsafe(method(resolveCarNameForSetDefrosterSettingsInCar:withCompletion:))]
205 #[unsafe(method_family = none)]
206 unsafe fn resolveCarNameForSetDefrosterSettingsInCar_withCompletion(
207 &self,
208 intent: &INSetDefrosterSettingsInCarIntent,
209 completion: &block2::DynBlock<dyn Fn(NonNull<INSpeakableStringResolutionResult>)>,
210 );
211 }
212);