objc2_intents/generated/
INGetCarPowerLevelStatusIntent.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 pub struct INGetCarPowerLevelStatusIntent;
16);
17
18#[cfg(feature = "INIntent")]
19extern_conformance!(
20 unsafe impl NSCoding for INGetCarPowerLevelStatusIntent {}
21);
22
23#[cfg(feature = "INIntent")]
24extern_conformance!(
25 unsafe impl NSCopying for INGetCarPowerLevelStatusIntent {}
26);
27
28#[cfg(feature = "INIntent")]
29unsafe impl CopyingHelper for INGetCarPowerLevelStatusIntent {
30 type Result = Self;
31}
32
33#[cfg(feature = "INIntent")]
34extern_conformance!(
35 unsafe impl NSObjectProtocol for INGetCarPowerLevelStatusIntent {}
36);
37
38#[cfg(feature = "INIntent")]
39extern_conformance!(
40 unsafe impl NSSecureCoding for INGetCarPowerLevelStatusIntent {}
41);
42
43#[cfg(feature = "INIntent")]
44impl INGetCarPowerLevelStatusIntent {
45 extern_methods!(
46 #[cfg(feature = "INSpeakableString")]
47 #[unsafe(method(initWithCarName:))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn initWithCarName(
50 this: Allocated<Self>,
51 car_name: Option<&INSpeakableString>,
52 ) -> Retained<Self>;
53
54 #[cfg(feature = "INSpeakableString")]
55 #[unsafe(method(carName))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn carName(&self) -> Option<Retained<INSpeakableString>>;
58 );
59}
60
61#[cfg(feature = "INIntent")]
63impl INGetCarPowerLevelStatusIntent {
64 extern_methods!(
65 #[unsafe(method(init))]
66 #[unsafe(method_family = init)]
67 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
68
69 #[unsafe(method(new))]
70 #[unsafe(method_family = new)]
71 pub unsafe fn new() -> Retained<Self>;
72 );
73}
74
75extern_protocol!(
76 pub unsafe trait INGetCarPowerLevelStatusIntentHandling: NSObjectProtocol {
82 #[cfg(all(
83 feature = "INGetCarPowerLevelStatusIntentResponse",
84 feature = "INIntent",
85 feature = "INIntentResponse",
86 feature = "block2"
87 ))]
88 #[unsafe(method(handleGetCarPowerLevelStatus:completion:))]
100 #[unsafe(method_family = none)]
101 unsafe fn handleGetCarPowerLevelStatus_completion(
102 &self,
103 intent: &INGetCarPowerLevelStatusIntent,
104 completion: &block2::DynBlock<dyn Fn(NonNull<INGetCarPowerLevelStatusIntentResponse>)>,
105 );
106
107 #[cfg(feature = "INIntent")]
108 #[optional]
109 #[unsafe(method(startSendingUpdatesForGetCarPowerLevelStatus:toObserver:))]
110 #[unsafe(method_family = none)]
111 unsafe fn startSendingUpdatesForGetCarPowerLevelStatus_toObserver(
112 &self,
113 intent: &INGetCarPowerLevelStatusIntent,
114 observer: &ProtocolObject<dyn INGetCarPowerLevelStatusIntentResponseObserver>,
115 );
116
117 #[cfg(feature = "INIntent")]
118 #[optional]
119 #[unsafe(method(stopSendingUpdatesForGetCarPowerLevelStatus:))]
120 #[unsafe(method_family = none)]
121 unsafe fn stopSendingUpdatesForGetCarPowerLevelStatus(
122 &self,
123 intent: &INGetCarPowerLevelStatusIntent,
124 );
125
126 #[cfg(all(
127 feature = "INGetCarPowerLevelStatusIntentResponse",
128 feature = "INIntent",
129 feature = "INIntentResponse",
130 feature = "block2"
131 ))]
132 #[optional]
144 #[unsafe(method(confirmGetCarPowerLevelStatus:completion:))]
145 #[unsafe(method_family = none)]
146 unsafe fn confirmGetCarPowerLevelStatus_completion(
147 &self,
148 intent: &INGetCarPowerLevelStatusIntent,
149 completion: &block2::DynBlock<dyn Fn(NonNull<INGetCarPowerLevelStatusIntentResponse>)>,
150 );
151
152 #[cfg(all(
153 feature = "INIntent",
154 feature = "INIntentResolutionResult",
155 feature = "INSpeakableStringResolutionResult",
156 feature = "block2"
157 ))]
158 #[optional]
170 #[unsafe(method(resolveCarNameForGetCarPowerLevelStatus:withCompletion:))]
171 #[unsafe(method_family = none)]
172 unsafe fn resolveCarNameForGetCarPowerLevelStatus_withCompletion(
173 &self,
174 intent: &INGetCarPowerLevelStatusIntent,
175 completion: &block2::DynBlock<dyn Fn(NonNull<INSpeakableStringResolutionResult>)>,
176 );
177 }
178);
179
180extern_protocol!(
181 pub unsafe trait INGetCarPowerLevelStatusIntentResponseObserver:
183 NSObjectProtocol
184 {
185 #[cfg(all(
186 feature = "INGetCarPowerLevelStatusIntentResponse",
187 feature = "INIntentResponse"
188 ))]
189 #[unsafe(method(getCarPowerLevelStatusResponseDidUpdate:))]
190 #[unsafe(method_family = none)]
191 unsafe fn getCarPowerLevelStatusResponseDidUpdate(
192 &self,
193 response: &INGetCarPowerLevelStatusIntentResponse,
194 );
195 }
196);