objc2_core_location/generated/
CLLocationManagerDelegate.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_protocol!(
11 pub unsafe trait CLLocationManagerDelegate: NSObjectProtocol {
13 #[cfg(all(feature = "CLLocation", feature = "CLLocationManager"))]
14 #[deprecated = "Implement -locationManager:didUpdateLocations: instead"]
15 #[optional]
16 #[unsafe(method(locationManager:didUpdateToLocation:fromLocation:))]
17 #[unsafe(method_family = none)]
18 unsafe fn locationManager_didUpdateToLocation_fromLocation(
19 &self,
20 manager: &CLLocationManager,
21 new_location: &CLLocation,
22 old_location: &CLLocation,
23 );
24
25 #[cfg(all(feature = "CLLocation", feature = "CLLocationManager"))]
26 #[optional]
27 #[unsafe(method(locationManager:didUpdateLocations:))]
28 #[unsafe(method_family = none)]
29 unsafe fn locationManager_didUpdateLocations(
30 &self,
31 manager: &CLLocationManager,
32 locations: &NSArray<CLLocation>,
33 );
34
35 #[cfg(all(feature = "CLHeading", feature = "CLLocationManager"))]
36 #[optional]
37 #[unsafe(method(locationManager:didUpdateHeading:))]
38 #[unsafe(method_family = none)]
39 unsafe fn locationManager_didUpdateHeading(
40 &self,
41 manager: &CLLocationManager,
42 new_heading: &CLHeading,
43 );
44
45 #[cfg(feature = "CLLocationManager")]
46 #[optional]
47 #[unsafe(method(locationManagerShouldDisplayHeadingCalibration:))]
48 #[unsafe(method_family = none)]
49 unsafe fn locationManagerShouldDisplayHeadingCalibration(
50 &self,
51 manager: &CLLocationManager,
52 ) -> bool;
53
54 #[cfg(all(feature = "CLLocationManager", feature = "CLRegion"))]
55 #[optional]
56 #[unsafe(method(locationManager:didDetermineState:forRegion:))]
57 #[unsafe(method_family = none)]
58 unsafe fn locationManager_didDetermineState_forRegion(
59 &self,
60 manager: &CLLocationManager,
61 state: CLRegionState,
62 region: &CLRegion,
63 );
64
65 #[cfg(all(
66 feature = "CLBeaconRegion",
67 feature = "CLLocationManager",
68 feature = "CLRegion"
69 ))]
70 #[deprecated]
71 #[optional]
72 #[unsafe(method(locationManager:didRangeBeacons:inRegion:))]
73 #[unsafe(method_family = none)]
74 unsafe fn locationManager_didRangeBeacons_inRegion(
75 &self,
76 manager: &CLLocationManager,
77 beacons: &NSArray<CLBeacon>,
78 region: &CLBeaconRegion,
79 );
80
81 #[cfg(all(
82 feature = "CLBeaconRegion",
83 feature = "CLLocationManager",
84 feature = "CLRegion"
85 ))]
86 #[deprecated]
87 #[optional]
88 #[unsafe(method(locationManager:rangingBeaconsDidFailForRegion:withError:))]
89 #[unsafe(method_family = none)]
90 unsafe fn locationManager_rangingBeaconsDidFailForRegion_withError(
91 &self,
92 manager: &CLLocationManager,
93 region: &CLBeaconRegion,
94 error: &NSError,
95 );
96
97 #[cfg(all(
98 feature = "CLBeaconIdentityCondition",
99 feature = "CLBeaconIdentityConstraint",
100 feature = "CLBeaconRegion",
101 feature = "CLCondition",
102 feature = "CLLocationManager"
103 ))]
104 #[optional]
105 #[unsafe(method(locationManager:didRangeBeacons:satisfyingConstraint:))]
106 #[unsafe(method_family = none)]
107 unsafe fn locationManager_didRangeBeacons_satisfyingConstraint(
108 &self,
109 manager: &CLLocationManager,
110 beacons: &NSArray<CLBeacon>,
111 beacon_constraint: &CLBeaconIdentityConstraint,
112 );
113
114 #[cfg(all(
115 feature = "CLBeaconIdentityCondition",
116 feature = "CLBeaconIdentityConstraint",
117 feature = "CLCondition",
118 feature = "CLLocationManager"
119 ))]
120 #[optional]
121 #[unsafe(method(locationManager:didFailRangingBeaconsForConstraint:error:))]
122 #[unsafe(method_family = none)]
123 unsafe fn locationManager_didFailRangingBeaconsForConstraint_error(
124 &self,
125 manager: &CLLocationManager,
126 beacon_constraint: &CLBeaconIdentityConstraint,
127 error: &NSError,
128 );
129
130 #[cfg(all(feature = "CLLocationManager", feature = "CLRegion"))]
131 #[optional]
132 #[unsafe(method(locationManager:didEnterRegion:))]
133 #[unsafe(method_family = none)]
134 unsafe fn locationManager_didEnterRegion(
135 &self,
136 manager: &CLLocationManager,
137 region: &CLRegion,
138 );
139
140 #[cfg(all(feature = "CLLocationManager", feature = "CLRegion"))]
141 #[optional]
142 #[unsafe(method(locationManager:didExitRegion:))]
143 #[unsafe(method_family = none)]
144 unsafe fn locationManager_didExitRegion(
145 &self,
146 manager: &CLLocationManager,
147 region: &CLRegion,
148 );
149
150 #[cfg(feature = "CLLocationManager")]
151 #[optional]
152 #[unsafe(method(locationManager:didFailWithError:))]
153 #[unsafe(method_family = none)]
154 unsafe fn locationManager_didFailWithError(
155 &self,
156 manager: &CLLocationManager,
157 error: &NSError,
158 );
159
160 #[cfg(all(feature = "CLLocationManager", feature = "CLRegion"))]
161 #[optional]
162 #[unsafe(method(locationManager:monitoringDidFailForRegion:withError:))]
163 #[unsafe(method_family = none)]
164 unsafe fn locationManager_monitoringDidFailForRegion_withError(
165 &self,
166 manager: &CLLocationManager,
167 region: Option<&CLRegion>,
168 error: &NSError,
169 );
170
171 #[cfg(feature = "CLLocationManager")]
172 #[deprecated]
173 #[optional]
174 #[unsafe(method(locationManager:didChangeAuthorizationStatus:))]
175 #[unsafe(method_family = none)]
176 unsafe fn locationManager_didChangeAuthorizationStatus(
177 &self,
178 manager: &CLLocationManager,
179 status: CLAuthorizationStatus,
180 );
181
182 #[cfg(feature = "CLLocationManager")]
183 #[optional]
184 #[unsafe(method(locationManagerDidChangeAuthorization:))]
185 #[unsafe(method_family = none)]
186 unsafe fn locationManagerDidChangeAuthorization(&self, manager: &CLLocationManager);
187
188 #[cfg(all(feature = "CLLocationManager", feature = "CLRegion"))]
189 #[optional]
190 #[unsafe(method(locationManager:didStartMonitoringForRegion:))]
191 #[unsafe(method_family = none)]
192 unsafe fn locationManager_didStartMonitoringForRegion(
193 &self,
194 manager: &CLLocationManager,
195 region: &CLRegion,
196 );
197
198 #[cfg(feature = "CLLocationManager")]
199 #[optional]
200 #[unsafe(method(locationManagerDidPauseLocationUpdates:))]
201 #[unsafe(method_family = none)]
202 unsafe fn locationManagerDidPauseLocationUpdates(&self, manager: &CLLocationManager);
203
204 #[cfg(feature = "CLLocationManager")]
205 #[optional]
206 #[unsafe(method(locationManagerDidResumeLocationUpdates:))]
207 #[unsafe(method_family = none)]
208 unsafe fn locationManagerDidResumeLocationUpdates(&self, manager: &CLLocationManager);
209
210 #[cfg(feature = "CLLocationManager")]
211 #[optional]
212 #[unsafe(method(locationManager:didFinishDeferredUpdatesWithError:))]
213 #[unsafe(method_family = none)]
214 unsafe fn locationManager_didFinishDeferredUpdatesWithError(
215 &self,
216 manager: &CLLocationManager,
217 error: Option<&NSError>,
218 );
219
220 #[cfg(all(feature = "CLLocationManager", feature = "CLVisit"))]
221 #[optional]
222 #[unsafe(method(locationManager:didVisit:))]
223 #[unsafe(method_family = none)]
224 unsafe fn locationManager_didVisit(&self, manager: &CLLocationManager, visit: &CLVisit);
225 }
226);