objc2_intents/generated/
INListRideOptionsIntent.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-location")]
7use objc2_core_location::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12extern_class!(
13 #[unsafe(super(INIntent, NSObject))]
15 #[derive(Debug, PartialEq, Eq, Hash)]
16 #[cfg(feature = "INIntent")]
17 pub struct INListRideOptionsIntent;
18);
19
20#[cfg(feature = "INIntent")]
21extern_conformance!(
22 unsafe impl NSCoding for INListRideOptionsIntent {}
23);
24
25#[cfg(feature = "INIntent")]
26extern_conformance!(
27 unsafe impl NSCopying for INListRideOptionsIntent {}
28);
29
30#[cfg(feature = "INIntent")]
31unsafe impl CopyingHelper for INListRideOptionsIntent {
32 type Result = Self;
33}
34
35#[cfg(feature = "INIntent")]
36extern_conformance!(
37 unsafe impl NSObjectProtocol for INListRideOptionsIntent {}
38);
39
40#[cfg(feature = "INIntent")]
41extern_conformance!(
42 unsafe impl NSSecureCoding for INListRideOptionsIntent {}
43);
44
45#[cfg(feature = "INIntent")]
46impl INListRideOptionsIntent {
47 extern_methods!(
48 #[cfg(feature = "objc2-core-location")]
49 #[unsafe(method(initWithPickupLocation:dropOffLocation:))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn initWithPickupLocation_dropOffLocation(
52 this: Allocated<Self>,
53 pickup_location: Option<&CLPlacemark>,
54 drop_off_location: Option<&CLPlacemark>,
55 ) -> Retained<Self>;
56
57 #[cfg(feature = "objc2-core-location")]
58 #[unsafe(method(pickupLocation))]
59 #[unsafe(method_family = none)]
60 pub unsafe fn pickupLocation(&self) -> Option<Retained<CLPlacemark>>;
61
62 #[cfg(feature = "objc2-core-location")]
63 #[unsafe(method(dropOffLocation))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn dropOffLocation(&self) -> Option<Retained<CLPlacemark>>;
66 );
67}
68
69#[cfg(feature = "INIntent")]
71impl INListRideOptionsIntent {
72 extern_methods!(
73 #[unsafe(method(init))]
74 #[unsafe(method_family = init)]
75 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
76
77 #[unsafe(method(new))]
78 #[unsafe(method_family = new)]
79 pub unsafe fn new() -> Retained<Self>;
80 );
81}
82
83extern_protocol!(
84 pub unsafe trait INListRideOptionsIntentHandling: NSObjectProtocol {
90 #[cfg(all(
91 feature = "INIntent",
92 feature = "INIntentResponse",
93 feature = "INListRideOptionsIntentResponse",
94 feature = "block2"
95 ))]
96 #[unsafe(method(handleListRideOptions:completion:))]
108 #[unsafe(method_family = none)]
109 unsafe fn handleListRideOptions_completion(
110 &self,
111 intent: &INListRideOptionsIntent,
112 completion: &block2::DynBlock<dyn Fn(NonNull<INListRideOptionsIntentResponse>)>,
113 );
114
115 #[cfg(all(
116 feature = "INIntent",
117 feature = "INIntentResponse",
118 feature = "INListRideOptionsIntentResponse",
119 feature = "block2"
120 ))]
121 #[optional]
133 #[unsafe(method(confirmListRideOptions:completion:))]
134 #[unsafe(method_family = none)]
135 unsafe fn confirmListRideOptions_completion(
136 &self,
137 intent: &INListRideOptionsIntent,
138 completion: &block2::DynBlock<dyn Fn(NonNull<INListRideOptionsIntentResponse>)>,
139 );
140
141 #[cfg(all(
142 feature = "INIntent",
143 feature = "INIntentResolutionResult",
144 feature = "INPlacemarkResolutionResult",
145 feature = "block2"
146 ))]
147 #[optional]
159 #[unsafe(method(resolvePickupLocationForListRideOptions:withCompletion:))]
160 #[unsafe(method_family = none)]
161 unsafe fn resolvePickupLocationForListRideOptions_withCompletion(
162 &self,
163 intent: &INListRideOptionsIntent,
164 completion: &block2::DynBlock<dyn Fn(NonNull<INPlacemarkResolutionResult>)>,
165 );
166
167 #[cfg(all(
168 feature = "INIntent",
169 feature = "INIntentResolutionResult",
170 feature = "INPlacemarkResolutionResult",
171 feature = "block2"
172 ))]
173 #[optional]
174 #[unsafe(method(resolveDropOffLocationForListRideOptions:withCompletion:))]
175 #[unsafe(method_family = none)]
176 unsafe fn resolveDropOffLocationForListRideOptions_withCompletion(
177 &self,
178 intent: &INListRideOptionsIntent,
179 completion: &block2::DynBlock<dyn Fn(NonNull<INPlacemarkResolutionResult>)>,
180 );
181 }
182);