1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_protocol!(
    pub unsafe trait CLLocationManagerDelegate: NSObjectProtocol {
        #[cfg(all(feature = "CLLocation", feature = "CLLocationManager"))]
        #[deprecated = "Implement -locationManager:didUpdateLocations: instead"]
        #[optional]
        #[method(locationManager:didUpdateToLocation:fromLocation:)]
        unsafe fn locationManager_didUpdateToLocation_fromLocation(
            &self,
            manager: &CLLocationManager,
            new_location: &CLLocation,
            old_location: &CLLocation,
        );

        #[cfg(all(feature = "CLLocation", feature = "CLLocationManager"))]
        #[optional]
        #[method(locationManager:didUpdateLocations:)]
        unsafe fn locationManager_didUpdateLocations(
            &self,
            manager: &CLLocationManager,
            locations: &NSArray<CLLocation>,
        );

        #[cfg(all(feature = "CLHeading", feature = "CLLocationManager"))]
        #[optional]
        #[method(locationManager:didUpdateHeading:)]
        unsafe fn locationManager_didUpdateHeading(
            &self,
            manager: &CLLocationManager,
            new_heading: &CLHeading,
        );

        #[cfg(feature = "CLLocationManager")]
        #[optional]
        #[method(locationManagerShouldDisplayHeadingCalibration:)]
        unsafe fn locationManagerShouldDisplayHeadingCalibration(
            &self,
            manager: &CLLocationManager,
        ) -> bool;

        #[cfg(all(feature = "CLLocationManager", feature = "CLRegion"))]
        #[optional]
        #[method(locationManager:didDetermineState:forRegion:)]
        unsafe fn locationManager_didDetermineState_forRegion(
            &self,
            manager: &CLLocationManager,
            state: CLRegionState,
            region: &CLRegion,
        );

        #[cfg(all(
            feature = "CLBeaconRegion",
            feature = "CLLocationManager",
            feature = "CLRegion"
        ))]
        #[deprecated]
        #[optional]
        #[method(locationManager:didRangeBeacons:inRegion:)]
        unsafe fn locationManager_didRangeBeacons_inRegion(
            &self,
            manager: &CLLocationManager,
            beacons: &NSArray<CLBeacon>,
            region: &CLBeaconRegion,
        );

        #[cfg(all(
            feature = "CLBeaconRegion",
            feature = "CLLocationManager",
            feature = "CLRegion"
        ))]
        #[deprecated]
        #[optional]
        #[method(locationManager:rangingBeaconsDidFailForRegion:withError:)]
        unsafe fn locationManager_rangingBeaconsDidFailForRegion_withError(
            &self,
            manager: &CLLocationManager,
            region: &CLBeaconRegion,
            error: &NSError,
        );

        #[cfg(all(
            feature = "CLBeaconIdentityCondition",
            feature = "CLBeaconIdentityConstraint",
            feature = "CLBeaconRegion",
            feature = "CLCondition",
            feature = "CLLocationManager"
        ))]
        #[optional]
        #[method(locationManager:didRangeBeacons:satisfyingConstraint:)]
        unsafe fn locationManager_didRangeBeacons_satisfyingConstraint(
            &self,
            manager: &CLLocationManager,
            beacons: &NSArray<CLBeacon>,
            beacon_constraint: &CLBeaconIdentityConstraint,
        );

        #[cfg(all(
            feature = "CLBeaconIdentityCondition",
            feature = "CLBeaconIdentityConstraint",
            feature = "CLCondition",
            feature = "CLLocationManager"
        ))]
        #[optional]
        #[method(locationManager:didFailRangingBeaconsForConstraint:error:)]
        unsafe fn locationManager_didFailRangingBeaconsForConstraint_error(
            &self,
            manager: &CLLocationManager,
            beacon_constraint: &CLBeaconIdentityConstraint,
            error: &NSError,
        );

        #[cfg(all(feature = "CLLocationManager", feature = "CLRegion"))]
        #[optional]
        #[method(locationManager:didEnterRegion:)]
        unsafe fn locationManager_didEnterRegion(
            &self,
            manager: &CLLocationManager,
            region: &CLRegion,
        );

        #[cfg(all(feature = "CLLocationManager", feature = "CLRegion"))]
        #[optional]
        #[method(locationManager:didExitRegion:)]
        unsafe fn locationManager_didExitRegion(
            &self,
            manager: &CLLocationManager,
            region: &CLRegion,
        );

        #[cfg(feature = "CLLocationManager")]
        #[optional]
        #[method(locationManager:didFailWithError:)]
        unsafe fn locationManager_didFailWithError(
            &self,
            manager: &CLLocationManager,
            error: &NSError,
        );

        #[cfg(all(feature = "CLLocationManager", feature = "CLRegion"))]
        #[optional]
        #[method(locationManager:monitoringDidFailForRegion:withError:)]
        unsafe fn locationManager_monitoringDidFailForRegion_withError(
            &self,
            manager: &CLLocationManager,
            region: Option<&CLRegion>,
            error: &NSError,
        );

        #[cfg(feature = "CLLocationManager")]
        #[deprecated]
        #[optional]
        #[method(locationManager:didChangeAuthorizationStatus:)]
        unsafe fn locationManager_didChangeAuthorizationStatus(
            &self,
            manager: &CLLocationManager,
            status: CLAuthorizationStatus,
        );

        #[cfg(feature = "CLLocationManager")]
        #[optional]
        #[method(locationManagerDidChangeAuthorization:)]
        unsafe fn locationManagerDidChangeAuthorization(&self, manager: &CLLocationManager);

        #[cfg(all(feature = "CLLocationManager", feature = "CLRegion"))]
        #[optional]
        #[method(locationManager:didStartMonitoringForRegion:)]
        unsafe fn locationManager_didStartMonitoringForRegion(
            &self,
            manager: &CLLocationManager,
            region: &CLRegion,
        );

        #[cfg(feature = "CLLocationManager")]
        #[optional]
        #[method(locationManagerDidPauseLocationUpdates:)]
        unsafe fn locationManagerDidPauseLocationUpdates(&self, manager: &CLLocationManager);

        #[cfg(feature = "CLLocationManager")]
        #[optional]
        #[method(locationManagerDidResumeLocationUpdates:)]
        unsafe fn locationManagerDidResumeLocationUpdates(&self, manager: &CLLocationManager);

        #[cfg(feature = "CLLocationManager")]
        #[optional]
        #[method(locationManager:didFinishDeferredUpdatesWithError:)]
        unsafe fn locationManager_didFinishDeferredUpdatesWithError(
            &self,
            manager: &CLLocationManager,
            error: Option<&NSError>,
        );

        #[cfg(all(feature = "CLLocationManager", feature = "CLVisit"))]
        #[optional]
        #[method(locationManager:didVisit:)]
        unsafe fn locationManager_didVisit(&self, manager: &CLLocationManager, visit: &CLVisit);
    }

    unsafe impl ProtocolType for dyn CLLocationManagerDelegate {}
);