@tokamakdev/plugin-location 0.1.0-beta.126 → 0.1.0-beta.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -8
- package/android/LocationPlugin.kt +26 -5
- package/android/LocationPositions.kt +52 -0
- package/apple/LocationEvents.swift +9 -0
- package/apple/LocationPlugin.swift +22 -12
- package/apple/LocationPositions.swift +49 -0
- package/package.json +3 -5
- package/src/errors.ts +0 -17
- package/src/index.ts +24 -27
- package/tokamak-plugin.json +3 -56
- package/android/Bindings.kt +0 -997
- package/android/bindings.ts +0 -4150
- package/apple/Bindings.swift +0 -1059
- package/apple/bindings.ts +0 -1314
- package/src/android.ts +0 -150
- package/src/apple.ts +0 -117
package/apple/bindings.ts
DELETED
|
@@ -1,1314 +0,0 @@
|
|
|
1
|
-
// Generated by `tok bindings` from the iOS and macOS 26.2 SDKs: CoreLocation, _LocationEssentials. Do not edit.
|
|
2
|
-
import { Bindings, NativeObject, type Classes, type TokamakContext } from "@tokamakdev/plugin/bindings";
|
|
3
|
-
|
|
4
|
-
const bindings = new Bindings("location/apple", () => classes);
|
|
5
|
-
|
|
6
|
-
/** iOS, macOS */
|
|
7
|
-
export type CLAccuracyAuthorization = "fullAccuracy" | "reducedAccuracy";
|
|
8
|
-
|
|
9
|
-
/** iOS, macOS */
|
|
10
|
-
export type CLActivityType = "airborne" | "automotiveNavigation" | "fitness" | "other" | "otherNavigation";
|
|
11
|
-
|
|
12
|
-
/** iOS, macOS */
|
|
13
|
-
export type CLAuthorizationStatus = "authorizedAlways" | "authorizedWhenInUse" | "denied" | "notDetermined" | "restricted";
|
|
14
|
-
|
|
15
|
-
/** iOS 17.0+ */
|
|
16
|
-
export class CLBackgroundActivitySession extends NativeObject {
|
|
17
|
-
/** iOS 18.0+ */
|
|
18
|
-
diagnostics(): ReadableStream<CLBackgroundActivitySession$Diagnostic> {
|
|
19
|
-
return bindings.stream(this, "CLBackgroundActivitySession.diagnostics", []);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/** iOS 17.0+ */
|
|
23
|
-
static init(ctx: TokamakContext): Promise<CLBackgroundActivitySession> {
|
|
24
|
-
return bindings.call(ctx, "CLBackgroundActivitySession.init()", []);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/** iOS 17.0+ */
|
|
28
|
-
invalidate(): Promise<void> {
|
|
29
|
-
return bindings.call(this, "CLBackgroundActivitySession.invalidate()", []);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/** iOS 18.0+ */
|
|
34
|
-
export interface CLBackgroundActivitySession$Diagnostic {
|
|
35
|
-
authorizationDenied: boolean;
|
|
36
|
-
authorizationDeniedGlobally: boolean;
|
|
37
|
-
authorizationRequestInProgress: boolean;
|
|
38
|
-
authorizationRestricted: boolean;
|
|
39
|
-
insufficientlyInUse: boolean;
|
|
40
|
-
serviceSessionRequired: boolean;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
44
|
-
export class CLBeacon extends NativeObject {
|
|
45
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
46
|
-
accuracy(): Promise<CLLocationAccuracy> {
|
|
47
|
-
return bindings.call(this, "CLBeacon.accuracy", []);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
51
|
-
major(): Promise<number> {
|
|
52
|
-
return bindings.call(this, "CLBeacon.major", []);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
56
|
-
minor(): Promise<number> {
|
|
57
|
-
return bindings.call(this, "CLBeacon.minor", []);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
61
|
-
proximity(): Promise<CLProximity> {
|
|
62
|
-
return bindings.call(this, "CLBeacon.proximity", []);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* iOS 7.0+, macOS 10.15+
|
|
67
|
-
* @deprecated
|
|
68
|
-
*/
|
|
69
|
-
proximityUUID(): Promise<string> {
|
|
70
|
-
return bindings.call(this, "CLBeacon.proximityUUID", []);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
74
|
-
rssi(): Promise<number> {
|
|
75
|
-
return bindings.call(this, "CLBeacon.rssi", []);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
79
|
-
timestamp(): Promise<Date> {
|
|
80
|
-
return bindings.call(this, "CLBeacon.timestamp", []);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
84
|
-
uuid(): Promise<string> {
|
|
85
|
-
return bindings.call(this, "CLBeacon.uuid", []);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
90
|
-
export class CLBeaconIdentityConstraint extends NativeObject {
|
|
91
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
92
|
-
major(): Promise<number | null> {
|
|
93
|
-
return bindings.call(this, "CLBeaconIdentityConstraint.major", []);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
97
|
-
minor(): Promise<number | null> {
|
|
98
|
-
return bindings.call(this, "CLBeaconIdentityConstraint.minor", []);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/** iOS, macOS */
|
|
103
|
-
export type CLBeaconMajorValue = number;
|
|
104
|
-
|
|
105
|
-
/** iOS, macOS */
|
|
106
|
-
export type CLBeaconMinorValue = number;
|
|
107
|
-
|
|
108
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
109
|
-
export class CLCondition extends NativeObject {
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/** iOS, macOS */
|
|
113
|
-
export type CLDeviceOrientation = "faceDown" | "faceUp" | "landscapeLeft" | "landscapeRight" | "portrait" | "portraitUpsideDown" | "unknown";
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* iOS 5.0+, macOS 10.8+
|
|
117
|
-
* @deprecated Use MapKit
|
|
118
|
-
*/
|
|
119
|
-
export class CLGeocoder extends NativeObject {
|
|
120
|
-
/**
|
|
121
|
-
* iOS 5.0+, macOS 10.8+
|
|
122
|
-
* @deprecated Use MKGeocodingRequest
|
|
123
|
-
*/
|
|
124
|
-
cancelGeocode(): Promise<void> {
|
|
125
|
-
return bindings.call(this, "CLGeocoder.cancelGeocode()", []);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* iOS 5.0+, macOS 10.8+
|
|
130
|
-
* @deprecated Use MKGeocodingRequest
|
|
131
|
-
*/
|
|
132
|
-
geocodeAddressString(addressString: string, options?: { signal?: AbortSignal }): Promise<CLPlacemark[]> {
|
|
133
|
-
return bindings.call(this, "CLGeocoder.geocodeAddressString(_:)", [addressString], options?.signal);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* iOS 5.0+, macOS 10.8+
|
|
138
|
-
* @deprecated Use MapKit
|
|
139
|
-
*/
|
|
140
|
-
geocodeAddressStringIn(addressString: string, region: CLRegion | null, options?: { signal?: AbortSignal }): Promise<CLPlacemark[]> {
|
|
141
|
-
return bindings.call(this, "CLGeocoder.geocodeAddressString(_:in:)", [addressString, region], options?.signal);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* iOS 11.0+, macOS 10.13+
|
|
146
|
-
* @deprecated Use MKGeocodingRequest
|
|
147
|
-
*/
|
|
148
|
-
geocodeAddressStringInPreferredLocale(addressString: string, region: CLRegion | null, locale: string | null, options?: { signal?: AbortSignal }): Promise<CLPlacemark[]> {
|
|
149
|
-
return bindings.call(this, "CLGeocoder.geocodeAddressString(_:in:preferredLocale:)", [addressString, region, locale], options?.signal);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* iOS 5.0+, macOS 10.8+
|
|
154
|
-
* @deprecated Use MapKit
|
|
155
|
-
*/
|
|
156
|
-
isGeocoding(): Promise<boolean> {
|
|
157
|
-
return bindings.call(this, "CLGeocoder.isGeocoding", []);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* iOS 5.0+, macOS 10.8+
|
|
162
|
-
* @deprecated Use MKReverseGeocodingRequest
|
|
163
|
-
*/
|
|
164
|
-
reverseGeocodeLocation(location: CLLocation, options?: { signal?: AbortSignal }): Promise<CLPlacemark[]> {
|
|
165
|
-
return bindings.call(this, "CLGeocoder.reverseGeocodeLocation(_:)", [location], options?.signal);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* iOS 11.0+, macOS 10.13+
|
|
170
|
-
* @deprecated Use MKReverseGeocodingRequest
|
|
171
|
-
*/
|
|
172
|
-
reverseGeocodeLocationPreferredLocale(location: CLLocation, locale: string | null, options?: { signal?: AbortSignal }): Promise<CLPlacemark[]> {
|
|
173
|
-
return bindings.call(this, "CLGeocoder.reverseGeocodeLocation(_:preferredLocale:)", [location, locale], options?.signal);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* iOS 5.0+, macOS 10.8+
|
|
178
|
-
* @deprecated Use MapKit
|
|
179
|
-
*/
|
|
180
|
-
static init(ctx: TokamakContext): Promise<CLGeocoder> {
|
|
181
|
-
return bindings.call(ctx, "CLGeocoder.init()", []);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/** iOS 3.0+, macOS 10.7+ */
|
|
186
|
-
export class CLHeading extends NativeObject {
|
|
187
|
-
/** iOS 3.0+, macOS 10.7+ */
|
|
188
|
-
headingAccuracy(): Promise<CLLocationDirection> {
|
|
189
|
-
return bindings.call(this, "CLHeading.headingAccuracy", []);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/** iOS 3.0+, macOS 10.7+ */
|
|
193
|
-
magneticHeading(): Promise<CLLocationDirection> {
|
|
194
|
-
return bindings.call(this, "CLHeading.magneticHeading", []);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/** iOS 3.0+, macOS 10.7+ */
|
|
198
|
-
timestamp(): Promise<Date> {
|
|
199
|
-
return bindings.call(this, "CLHeading.timestamp", []);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
/** iOS 3.0+, macOS 10.7+ */
|
|
203
|
-
trueHeading(): Promise<CLLocationDirection> {
|
|
204
|
-
return bindings.call(this, "CLHeading.trueHeading", []);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/** iOS 3.0+, macOS 10.7+ */
|
|
208
|
-
x(): Promise<CLHeadingComponentValue> {
|
|
209
|
-
return bindings.call(this, "CLHeading.x", []);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/** iOS 3.0+, macOS 10.7+ */
|
|
213
|
-
y(): Promise<CLHeadingComponentValue> {
|
|
214
|
-
return bindings.call(this, "CLHeading.y", []);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/** iOS 3.0+, macOS 10.7+ */
|
|
218
|
-
z(): Promise<CLHeadingComponentValue> {
|
|
219
|
-
return bindings.call(this, "CLHeading.z", []);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/** iOS, macOS */
|
|
224
|
-
export type CLHeadingComponentValue = number;
|
|
225
|
-
|
|
226
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
227
|
-
export class CLLocationManager extends NativeObject {
|
|
228
|
-
/** iOS 14.0+, macOS 11.0+ */
|
|
229
|
-
accuracyAuthorization(): Promise<CLAccuracyAuthorization> {
|
|
230
|
-
return bindings.call(this, "CLLocationManager.accuracyAuthorization", []);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/** iOS 6.0+, macOS 10.15+ */
|
|
234
|
-
activityType(): Promise<CLActivityType> {
|
|
235
|
-
return bindings.call(this, "CLLocationManager.activityType", []);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/** iOS 6.0+, macOS 10.15+ */
|
|
239
|
-
setActivityType(value: CLActivityType): Promise<void> {
|
|
240
|
-
return bindings.call(this, "CLLocationManager.activityType=", [value]);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* iOS 6.0+, macOS 10.15+
|
|
245
|
-
* @deprecated You can remove calls to this method
|
|
246
|
-
*/
|
|
247
|
-
allowDeferredLocationUpdatesUntilTraveledTimeout(distance: CLLocationDistance, timeout: number): Promise<void> {
|
|
248
|
-
return bindings.call(this, "CLLocationManager.allowDeferredLocationUpdates(untilTraveled:timeout:)", [distance, timeout]);
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
/** iOS 9.0+, macOS 10.15+ */
|
|
252
|
-
allowsBackgroundLocationUpdates(): Promise<boolean> {
|
|
253
|
-
return bindings.call(this, "CLLocationManager.allowsBackgroundLocationUpdates", []);
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
/** iOS 9.0+, macOS 10.15+ */
|
|
257
|
-
setAllowsBackgroundLocationUpdates(value: boolean): Promise<void> {
|
|
258
|
-
return bindings.call(this, "CLLocationManager.allowsBackgroundLocationUpdates=", [value]);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
/** iOS 14.0+, macOS 11.0+ */
|
|
262
|
-
authorizationStatus(): Promise<CLAuthorizationStatus> {
|
|
263
|
-
return bindings.call(this, "CLLocationManager.authorizationStatus", []);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* iOS 4.2+, macOS 10.7+
|
|
268
|
-
* @deprecated
|
|
269
|
-
*/
|
|
270
|
-
static authorizationStatus(ctx: TokamakContext): Promise<CLAuthorizationStatus> {
|
|
271
|
-
return bindings.call(ctx, "CLLocationManager.authorizationStatus()", []);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* iOS 6.0+, macOS 10.9+
|
|
276
|
-
* @deprecated You can remove calls to this method
|
|
277
|
-
*/
|
|
278
|
-
static deferredLocationUpdatesAvailable(ctx: TokamakContext): Promise<boolean> {
|
|
279
|
-
return bindings.call(ctx, "CLLocationManager.deferredLocationUpdatesAvailable()", []);
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
283
|
-
delegate(): Promise<CLLocationManagerDelegate | null> {
|
|
284
|
-
return bindings.call(this, "CLLocationManager.delegate", []);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
288
|
-
setDelegate(value: CLLocationManagerDelegate | null): Promise<void> {
|
|
289
|
-
return bindings.call(this, "CLLocationManager.delegate=", [value]);
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
293
|
-
desiredAccuracy(): Promise<CLLocationAccuracy> {
|
|
294
|
-
return bindings.call(this, "CLLocationManager.desiredAccuracy", []);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
298
|
-
setDesiredAccuracy(value: CLLocationAccuracy): Promise<void> {
|
|
299
|
-
return bindings.call(this, "CLLocationManager.desiredAccuracy=", [value]);
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* iOS 6.0+, macOS 10.15+
|
|
304
|
-
* @deprecated You can remove calls to this method
|
|
305
|
-
*/
|
|
306
|
-
disallowDeferredLocationUpdates(): Promise<void> {
|
|
307
|
-
return bindings.call(this, "CLLocationManager.disallowDeferredLocationUpdates()", []);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/** iOS 3.0+, macOS 10.15+ */
|
|
311
|
-
dismissHeadingCalibrationDisplay(): Promise<void> {
|
|
312
|
-
return bindings.call(this, "CLLocationManager.dismissHeadingCalibrationDisplay()", []);
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
316
|
-
distanceFilter(): Promise<CLLocationDistance> {
|
|
317
|
-
return bindings.call(this, "CLLocationManager.distanceFilter", []);
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
321
|
-
setDistanceFilter(value: CLLocationDistance): Promise<void> {
|
|
322
|
-
return bindings.call(this, "CLLocationManager.distanceFilter=", [value]);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/** iOS 4.0+, macOS 10.15+ */
|
|
326
|
-
heading(): Promise<CLHeading | null> {
|
|
327
|
-
return bindings.call(this, "CLLocationManager.heading", []);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
/** iOS 4.0+, macOS 10.7+ */
|
|
331
|
-
static headingAvailable(ctx: TokamakContext): Promise<boolean> {
|
|
332
|
-
return bindings.call(ctx, "CLLocationManager.headingAvailable()", []);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/** iOS 3.0+, macOS 10.15+ */
|
|
336
|
-
headingFilter(): Promise<CLLocationDegrees> {
|
|
337
|
-
return bindings.call(this, "CLLocationManager.headingFilter", []);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
/** iOS 3.0+, macOS 10.15+ */
|
|
341
|
-
setHeadingFilter(value: CLLocationDegrees): Promise<void> {
|
|
342
|
-
return bindings.call(this, "CLLocationManager.headingFilter=", [value]);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* iOS 4.0+, macOS 10.15+
|
|
347
|
-
* @deprecated
|
|
348
|
-
*/
|
|
349
|
-
headingOrientation(): Promise<CLDeviceOrientation> {
|
|
350
|
-
return bindings.call(this, "CLLocationManager.headingOrientation", []);
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* iOS 4.0+, macOS 10.15+
|
|
355
|
-
* @deprecated
|
|
356
|
-
*/
|
|
357
|
-
setHeadingOrientation(value: CLDeviceOrientation): Promise<void> {
|
|
358
|
-
return bindings.call(this, "CLLocationManager.headingOrientation=", [value]);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/** iOS 14.0+, macOS 11.0+ */
|
|
362
|
-
isAuthorizedForWidgetUpdates(): Promise<boolean> {
|
|
363
|
-
return bindings.call(this, "CLLocationManager.isAuthorizedForWidgetUpdates", []);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
367
|
-
static isRangingAvailable(ctx: TokamakContext): Promise<boolean> {
|
|
368
|
-
return bindings.call(ctx, "CLLocationManager.isRangingAvailable()", []);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
372
|
-
location(): Promise<CLLocation | null> {
|
|
373
|
-
return bindings.call(this, "CLLocationManager.location", []);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
/** iOS 4.0+, macOS 10.7+ */
|
|
377
|
-
static locationServicesEnabled(ctx: TokamakContext): Promise<boolean> {
|
|
378
|
-
return bindings.call(ctx, "CLLocationManager.locationServicesEnabled()", []);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
/** iOS 4.0+, macOS 10.8+ */
|
|
382
|
-
maximumRegionMonitoringDistance(): Promise<CLLocationDistance> {
|
|
383
|
-
return bindings.call(this, "CLLocationManager.maximumRegionMonitoringDistance", []);
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
/** iOS 4.0+, macOS 10.8+ */
|
|
387
|
-
monitoredRegions(): Promise<CLRegion[]> {
|
|
388
|
-
return bindings.call(this, "CLLocationManager.monitoredRegions", []);
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
/** iOS 6.0+, macOS 10.15+ */
|
|
392
|
-
pausesLocationUpdatesAutomatically(): Promise<boolean> {
|
|
393
|
-
return bindings.call(this, "CLLocationManager.pausesLocationUpdatesAutomatically", []);
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
/** iOS 6.0+, macOS 10.15+ */
|
|
397
|
-
setPausesLocationUpdatesAutomatically(value: boolean): Promise<void> {
|
|
398
|
-
return bindings.call(this, "CLLocationManager.pausesLocationUpdatesAutomatically=", [value]);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
402
|
-
rangedBeaconConstraints(): Promise<CLBeaconIdentityConstraint[]> {
|
|
403
|
-
return bindings.call(this, "CLLocationManager.rangedBeaconConstraints", []);
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
/**
|
|
407
|
-
* iOS 7.0+, macOS 10.15+
|
|
408
|
-
* @deprecated Use -rangedBeaconConstraints
|
|
409
|
-
*/
|
|
410
|
-
rangedRegions(): Promise<CLRegion[]> {
|
|
411
|
-
return bindings.call(this, "CLLocationManager.rangedRegions", []);
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
415
|
-
requestAlwaysAuthorization(): Promise<void> {
|
|
416
|
-
return bindings.call(this, "CLLocationManager.requestAlwaysAuthorization()", []);
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
/** iOS 9.0+, macOS 10.14+ */
|
|
420
|
-
requestLocation(): Promise<void> {
|
|
421
|
-
return bindings.call(this, "CLLocationManager.requestLocation()", []);
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
425
|
-
requestStateForRegion(region: CLRegion): Promise<void> {
|
|
426
|
-
return bindings.call(this, "CLLocationManager.requestState(for:)", [region]);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
/** iOS 14.0+, macOS 11.0+ */
|
|
430
|
-
requestTemporaryFullAccuracyAuthorizationWithPurposeKey(purposeKey: string, options?: { signal?: AbortSignal }): Promise<void> {
|
|
431
|
-
return bindings.call(this, "CLLocationManager.requestTemporaryFullAccuracyAuthorization(withPurposeKey:)", [purposeKey], options?.signal);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
435
|
-
requestWhenInUseAuthorization(): Promise<void> {
|
|
436
|
-
return bindings.call(this, "CLLocationManager.requestWhenInUseAuthorization()", []);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
/** iOS 11.0+ */
|
|
440
|
-
showsBackgroundLocationIndicator(): Promise<boolean> {
|
|
441
|
-
return bindings.call(this, "CLLocationManager.showsBackgroundLocationIndicator", []);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
/** iOS 11.0+ */
|
|
445
|
-
setShowsBackgroundLocationIndicator(value: boolean): Promise<void> {
|
|
446
|
-
return bindings.call(this, "CLLocationManager.showsBackgroundLocationIndicator=", [value]);
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/** iOS 4.0+, macOS 10.7+ */
|
|
450
|
-
static significantLocationChangeMonitoringAvailable(ctx: TokamakContext): Promise<boolean> {
|
|
451
|
-
return bindings.call(ctx, "CLLocationManager.significantLocationChangeMonitoringAvailable()", []);
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
455
|
-
startMonitoringForRegion(region: CLRegion): Promise<void> {
|
|
456
|
-
return bindings.call(this, "CLLocationManager.startMonitoring(for:)", [region]);
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/** iOS 15.0+ */
|
|
460
|
-
startMonitoringLocationPushes(options?: { signal?: AbortSignal }): Promise<Uint8Array> {
|
|
461
|
-
return bindings.call(this, "CLLocationManager.startMonitoringLocationPushes()", [], options?.signal);
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
/** iOS 4.0+, macOS 10.7+ */
|
|
465
|
-
startMonitoringSignificantLocationChanges(): Promise<void> {
|
|
466
|
-
return bindings.call(this, "CLLocationManager.startMonitoringSignificantLocationChanges()", []);
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
470
|
-
startMonitoringVisits(): Promise<void> {
|
|
471
|
-
return bindings.call(this, "CLLocationManager.startMonitoringVisits()", []);
|
|
472
|
-
}
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* iOS 7.0+, macOS 11.0+
|
|
476
|
-
* @deprecated Use -startRangingBeaconsSatisfyingConstraint:
|
|
477
|
-
*/
|
|
478
|
-
startRangingBeaconsInRegion(region: CLBeaconRegion): Promise<void> {
|
|
479
|
-
return bindings.call(this, "CLLocationManager.startRangingBeacons(in:)", [region]);
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
483
|
-
startRangingBeaconsSatisfyingConstraint(constraint: CLBeaconIdentityConstraint): Promise<void> {
|
|
484
|
-
return bindings.call(this, "CLLocationManager.startRangingBeacons(satisfying:)", [constraint]);
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
/** iOS 3.0+, macOS 10.15+ */
|
|
488
|
-
startUpdatingHeading(): Promise<void> {
|
|
489
|
-
return bindings.call(this, "CLLocationManager.startUpdatingHeading()", []);
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
493
|
-
startUpdatingLocation(): Promise<void> {
|
|
494
|
-
return bindings.call(this, "CLLocationManager.startUpdatingLocation()", []);
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
498
|
-
stopMonitoringForRegion(region: CLRegion): Promise<void> {
|
|
499
|
-
return bindings.call(this, "CLLocationManager.stopMonitoring(for:)", [region]);
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
/** iOS 15.0+ */
|
|
503
|
-
stopMonitoringLocationPushes(): Promise<void> {
|
|
504
|
-
return bindings.call(this, "CLLocationManager.stopMonitoringLocationPushes()", []);
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
/** iOS 4.0+, macOS 10.7+ */
|
|
508
|
-
stopMonitoringSignificantLocationChanges(): Promise<void> {
|
|
509
|
-
return bindings.call(this, "CLLocationManager.stopMonitoringSignificantLocationChanges()", []);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
513
|
-
stopMonitoringVisits(): Promise<void> {
|
|
514
|
-
return bindings.call(this, "CLLocationManager.stopMonitoringVisits()", []);
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
/**
|
|
518
|
-
* iOS 7.0+, macOS 11.0+
|
|
519
|
-
* @deprecated Use -stopRangingBeaconsSatisfyingConstraint:
|
|
520
|
-
*/
|
|
521
|
-
stopRangingBeaconsInRegion(region: CLBeaconRegion): Promise<void> {
|
|
522
|
-
return bindings.call(this, "CLLocationManager.stopRangingBeacons(in:)", [region]);
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
526
|
-
stopRangingBeaconsSatisfyingConstraint(constraint: CLBeaconIdentityConstraint): Promise<void> {
|
|
527
|
-
return bindings.call(this, "CLLocationManager.stopRangingBeacons(satisfying:)", [constraint]);
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
/** iOS 3.0+ */
|
|
531
|
-
stopUpdatingHeading(): Promise<void> {
|
|
532
|
-
return bindings.call(this, "CLLocationManager.stopUpdatingHeading()", []);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
536
|
-
stopUpdatingLocation(): Promise<void> {
|
|
537
|
-
return bindings.call(this, "CLLocationManager.stopUpdatingLocation()", []);
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* macOS 10.15+
|
|
542
|
-
* @deprecated
|
|
543
|
-
*/
|
|
544
|
-
headingAvailable(): Promise<boolean> {
|
|
545
|
-
return bindings.call(this, "CLLocationManager.headingAvailable", []);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* macOS 10.15+
|
|
550
|
-
* @deprecated
|
|
551
|
-
*/
|
|
552
|
-
locationServicesEnabled(): Promise<boolean> {
|
|
553
|
-
return bindings.call(this, "CLLocationManager.locationServicesEnabled", []);
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* macOS 10.7+
|
|
558
|
-
* @deprecated Set the purpose string in Info.plist using key NSLocationUsageDescription
|
|
559
|
-
*/
|
|
560
|
-
purpose(): Promise<string | null> {
|
|
561
|
-
return bindings.call(this, "CLLocationManager.purpose", []);
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* macOS 10.7+
|
|
566
|
-
* @deprecated Set the purpose string in Info.plist using key NSLocationUsageDescription
|
|
567
|
-
*/
|
|
568
|
-
setPurpose(value: string | null): Promise<void> {
|
|
569
|
-
return bindings.call(this, "CLLocationManager.purpose=", [value]);
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* macOS 10.8+
|
|
574
|
-
* @deprecated
|
|
575
|
-
*/
|
|
576
|
-
static regionMonitoringAvailable(ctx: TokamakContext): Promise<boolean> {
|
|
577
|
-
return bindings.call(ctx, "CLLocationManager.regionMonitoringAvailable()", []);
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* macOS 10.8+
|
|
582
|
-
* @deprecated Use +isMonitoringAvailableForClass: and -authorizationStatus instead
|
|
583
|
-
*/
|
|
584
|
-
static regionMonitoringEnabled(ctx: TokamakContext): Promise<boolean> {
|
|
585
|
-
return bindings.call(ctx, "CLLocationManager.regionMonitoringEnabled()", []);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
/**
|
|
589
|
-
* macOS 10.15+
|
|
590
|
-
* @deprecated
|
|
591
|
-
*/
|
|
592
|
-
startMonitoringForRegionDesiredAccuracy(region: CLRegion, accuracy: CLLocationAccuracy): Promise<void> {
|
|
593
|
-
return bindings.call(this, "CLLocationManager.startMonitoring(for:desiredAccuracy:)", [region, accuracy]);
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
597
|
-
static init(ctx: TokamakContext): Promise<CLLocationManager> {
|
|
598
|
-
return bindings.call(ctx, "CLLocationManager.init()", []);
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
/** iOS, macOS */
|
|
603
|
-
export interface CLLocationManagerDelegateMethods {
|
|
604
|
-
/**
|
|
605
|
-
* iOS 4.2+, macOS 10.7+
|
|
606
|
-
* @deprecated
|
|
607
|
-
*/
|
|
608
|
-
locationManagerDidChangeAuthorizationStatus?(manager: CLLocationManager, status: CLAuthorizationStatus): void | Promise<void>;
|
|
609
|
-
/** iOS 7.0+, macOS 10.10+ */
|
|
610
|
-
locationManagerDidDetermineStateForRegion?(manager: CLLocationManager, state: CLRegionState, region: CLRegion): void | Promise<void>;
|
|
611
|
-
/** iOS 4.0+, macOS 10.8+ */
|
|
612
|
-
locationManagerDidEnterRegion?(manager: CLLocationManager, region: CLRegion): void | Promise<void>;
|
|
613
|
-
/** iOS 4.0+, macOS 10.8+ */
|
|
614
|
-
locationManagerDidExitRegion?(manager: CLLocationManager, region: CLRegion): void | Promise<void>;
|
|
615
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
616
|
-
locationManagerDidFailRangingBeaconsForConstraintError?(manager: CLLocationManager, beaconConstraint: CLBeaconIdentityConstraint, error: DOMException): void | Promise<void>;
|
|
617
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
618
|
-
locationManagerDidFailWithError?(manager: CLLocationManager, error: DOMException): void | Promise<void>;
|
|
619
|
-
/** iOS 6.0+, macOS 10.9+ */
|
|
620
|
-
locationManagerDidFinishDeferredUpdatesWithError?(manager: CLLocationManager, error: DOMException | null): void | Promise<void>;
|
|
621
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
622
|
-
locationManagerDidRangeBeaconsSatisfyingConstraint?(manager: CLLocationManager, beacons: CLBeacon[], beaconConstraint: CLBeaconIdentityConstraint): void | Promise<void>;
|
|
623
|
-
/**
|
|
624
|
-
* iOS 7.0+, macOS 10.15+
|
|
625
|
-
* @deprecated
|
|
626
|
-
*/
|
|
627
|
-
locationManagerDidRangeBeaconsInRegion?(manager: CLLocationManager, beacons: CLBeacon[], region: CLBeaconRegion): void | Promise<void>;
|
|
628
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
629
|
-
locationManagerDidStartMonitoringForRegion?(manager: CLLocationManager, region: CLRegion): void | Promise<void>;
|
|
630
|
-
/** iOS 3.0+, macOS 10.15+ */
|
|
631
|
-
locationManagerDidUpdateHeading?(manager: CLLocationManager, newHeading: CLHeading): void | Promise<void>;
|
|
632
|
-
/** iOS 6.0+, macOS 10.9+ */
|
|
633
|
-
locationManagerDidUpdateLocations?(manager: CLLocationManager, locations: CLLocation[]): void | Promise<void>;
|
|
634
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
635
|
-
locationManagerDidVisit?(manager: CLLocationManager, visit: CLVisit): void | Promise<void>;
|
|
636
|
-
/** iOS 4.0+, macOS 10.8+ */
|
|
637
|
-
locationManagerMonitoringDidFailForRegionWithError?(manager: CLLocationManager, region: CLRegion | null, error: DOMException): void | Promise<void>;
|
|
638
|
-
/**
|
|
639
|
-
* iOS 7.0+, macOS 10.15+
|
|
640
|
-
* @deprecated
|
|
641
|
-
*/
|
|
642
|
-
locationManagerRangingBeaconsDidFailForRegionWithError?(manager: CLLocationManager, region: CLBeaconRegion, error: DOMException): void | Promise<void>;
|
|
643
|
-
/** iOS 14.0+, macOS 11.0+ */
|
|
644
|
-
locationManagerDidChangeAuthorization?(manager: CLLocationManager): void | Promise<void>;
|
|
645
|
-
/** iOS 6.0+, macOS 10.15+ */
|
|
646
|
-
locationManagerDidPauseLocationUpdates?(manager: CLLocationManager): void | Promise<void>;
|
|
647
|
-
/** iOS 6.0+, macOS 10.15+ */
|
|
648
|
-
locationManagerDidResumeLocationUpdates?(manager: CLLocationManager): void | Promise<void>;
|
|
649
|
-
/** macOS 10.6+ */
|
|
650
|
-
locationManagerDidUpdateToLocationFromLocation?(manager: CLLocationManager, newLocation: CLLocation, oldLocation: CLLocation): void | Promise<void>;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
/** iOS, macOS */
|
|
654
|
-
export class CLLocationManagerDelegate extends NativeObject {
|
|
655
|
-
/** A native object whose methods call `handlers`. */
|
|
656
|
-
static implement(ctx: TokamakContext, handlers: CLLocationManagerDelegateMethods): Promise<CLLocationManagerDelegate> {
|
|
657
|
-
return bindings.implement(ctx, CLLocationManagerDelegate, "CLLocationManagerDelegate", ["locationManagerDidChangeAuthorizationStatus", "locationManagerDidDetermineStateForRegion", "locationManagerDidEnterRegion", "locationManagerDidExitRegion", "locationManagerDidFailRangingBeaconsForConstraintError", "locationManagerDidFailWithError", "locationManagerDidFinishDeferredUpdatesWithError", "locationManagerDidRangeBeaconsSatisfyingConstraint", "locationManagerDidRangeBeaconsInRegion", "locationManagerDidStartMonitoringForRegion", "locationManagerDidUpdateHeading", "locationManagerDidUpdateLocations", "locationManagerDidVisit", "locationManagerMonitoringDidFailForRegionWithError", "locationManagerRangingBeaconsDidFailForRegionWithError", "locationManagerDidChangeAuthorization", "locationManagerDidPauseLocationUpdates", "locationManagerDidResumeLocationUpdates", "locationManagerDidUpdateToLocationFromLocation"], handlers);
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
/** iOS 15.0+ */
|
|
662
|
-
export class CLLocationPushServiceExtension extends NativeObject {
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
666
|
-
export const CLLocationUpdate = {
|
|
667
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
668
|
-
liveUpdates(ctx: TokamakContext, configuration: CLLocationUpdate$LiveConfiguration): ReadableStream<CLLocationUpdate> {
|
|
669
|
-
return bindings.stream(ctx, "CLLocationUpdate.liveUpdates(_:)", [configuration]);
|
|
670
|
-
},
|
|
671
|
-
};
|
|
672
|
-
|
|
673
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
674
|
-
export interface CLLocationUpdate {
|
|
675
|
-
accuracyLimited?: boolean;
|
|
676
|
-
authorizationDenied?: boolean;
|
|
677
|
-
authorizationDeniedGlobally?: boolean;
|
|
678
|
-
authorizationRequestInProgress?: boolean;
|
|
679
|
-
authorizationRestricted?: boolean;
|
|
680
|
-
insufficientlyInUse?: boolean;
|
|
681
|
-
isStationary: boolean;
|
|
682
|
-
location: CLLocation | null;
|
|
683
|
-
locationUnavailable?: boolean;
|
|
684
|
-
serviceSessionRequired?: boolean;
|
|
685
|
-
stationary?: boolean;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
689
|
-
export type CLLocationUpdate$LiveConfiguration = "airborne" | "automotiveNavigation" | "default" | "fitness" | "otherNavigation";
|
|
690
|
-
|
|
691
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
692
|
-
export class CLMonitor extends NativeObject {
|
|
693
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
694
|
-
addIdentifier(Condition: CLCondition, identifier: string, options?: { signal?: AbortSignal }): Promise<void> {
|
|
695
|
-
return bindings.call(this, "CLMonitor.add(_:identifier:)", [Condition, identifier], options?.signal);
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
699
|
-
identifiers(options?: { signal?: AbortSignal }): Promise<string[]> {
|
|
700
|
-
return bindings.call(this, "CLMonitor.identifiers", [], options?.signal);
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
704
|
-
static init(ctx: TokamakContext, name: string, options?: { signal?: AbortSignal }): Promise<CLMonitor> {
|
|
705
|
-
return bindings.call(ctx, "CLMonitor.init(_:)", [name], options?.signal);
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
709
|
-
remove(identifier: string, options?: { signal?: AbortSignal }): Promise<void> {
|
|
710
|
-
return bindings.call(this, "CLMonitor.remove(_:)", [identifier], options?.signal);
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
715
|
-
export interface CLMonitor$BeaconIdentityCondition {
|
|
716
|
-
major: number | null;
|
|
717
|
-
minor: number | null;
|
|
718
|
-
uuid: string;
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
/** iOS 17.0+, macOS 14.0+ */
|
|
722
|
-
export interface CLMonitor$CircularGeographicCondition {
|
|
723
|
-
center: CLLocationCoordinate2D;
|
|
724
|
-
radius: CLLocationDistance;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
728
|
-
export class CLPlacemark extends NativeObject {
|
|
729
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
730
|
-
administrativeArea(): Promise<string | null> {
|
|
731
|
-
return bindings.call(this, "CLPlacemark.administrativeArea", []);
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
735
|
-
areasOfInterest(): Promise<string[] | null> {
|
|
736
|
-
return bindings.call(this, "CLPlacemark.areasOfInterest", []);
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
740
|
-
country(): Promise<string | null> {
|
|
741
|
-
return bindings.call(this, "CLPlacemark.country", []);
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
745
|
-
static initWithPlacemark(ctx: TokamakContext, placemark: CLPlacemark): Promise<CLPlacemark> {
|
|
746
|
-
return bindings.call(ctx, "CLPlacemark.init(placemark:)", [placemark]);
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
750
|
-
inlandWater(): Promise<string | null> {
|
|
751
|
-
return bindings.call(this, "CLPlacemark.inlandWater", []);
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
755
|
-
isoCountryCode(): Promise<string | null> {
|
|
756
|
-
return bindings.call(this, "CLPlacemark.isoCountryCode", []);
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
760
|
-
locality(): Promise<string | null> {
|
|
761
|
-
return bindings.call(this, "CLPlacemark.locality", []);
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
765
|
-
location(): Promise<CLLocation | null> {
|
|
766
|
-
return bindings.call(this, "CLPlacemark.location", []);
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
770
|
-
name(): Promise<string | null> {
|
|
771
|
-
return bindings.call(this, "CLPlacemark.name", []);
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
775
|
-
ocean(): Promise<string | null> {
|
|
776
|
-
return bindings.call(this, "CLPlacemark.ocean", []);
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
780
|
-
postalCode(): Promise<string | null> {
|
|
781
|
-
return bindings.call(this, "CLPlacemark.postalCode", []);
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
785
|
-
region(): Promise<CLRegion | null> {
|
|
786
|
-
return bindings.call(this, "CLPlacemark.region", []);
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
790
|
-
subAdministrativeArea(): Promise<string | null> {
|
|
791
|
-
return bindings.call(this, "CLPlacemark.subAdministrativeArea", []);
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
795
|
-
subLocality(): Promise<string | null> {
|
|
796
|
-
return bindings.call(this, "CLPlacemark.subLocality", []);
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
800
|
-
subThoroughfare(): Promise<string | null> {
|
|
801
|
-
return bindings.call(this, "CLPlacemark.subThoroughfare", []);
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
/** iOS 5.0+, macOS 10.8+ */
|
|
805
|
-
thoroughfare(): Promise<string | null> {
|
|
806
|
-
return bindings.call(this, "CLPlacemark.thoroughfare", []);
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
/** iOS 9.0+, macOS 10.11+ */
|
|
810
|
-
timeZone(): Promise<string | null> {
|
|
811
|
-
return bindings.call(this, "CLPlacemark.timeZone", []);
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
816
|
-
export type CLProximity = "far" | "immediate" | "near" | "unknown";
|
|
817
|
-
|
|
818
|
-
/** iOS 4.0+, macOS 10.7+ */
|
|
819
|
-
export class CLRegion extends NativeObject {
|
|
820
|
-
/** iOS 4.0+, macOS 10.7+ */
|
|
821
|
-
identifier(): Promise<string> {
|
|
822
|
-
return bindings.call(this, "CLRegion.identifier", []);
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
/** iOS 7.0+, macOS 10.10+ */
|
|
826
|
-
notifyOnEntry(): Promise<boolean> {
|
|
827
|
-
return bindings.call(this, "CLRegion.notifyOnEntry", []);
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
/** iOS 7.0+, macOS 10.10+ */
|
|
831
|
-
setNotifyOnEntry(value: boolean): Promise<void> {
|
|
832
|
-
return bindings.call(this, "CLRegion.notifyOnEntry=", [value]);
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
/** iOS 7.0+, macOS 10.10+ */
|
|
836
|
-
notifyOnExit(): Promise<boolean> {
|
|
837
|
-
return bindings.call(this, "CLRegion.notifyOnExit", []);
|
|
838
|
-
}
|
|
839
|
-
|
|
840
|
-
/** iOS 7.0+, macOS 10.10+ */
|
|
841
|
-
setNotifyOnExit(value: boolean): Promise<void> {
|
|
842
|
-
return bindings.call(this, "CLRegion.notifyOnExit=", [value]);
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
/**
|
|
846
|
-
* macOS 10.7+
|
|
847
|
-
* @deprecated Please see CLCircularRegion
|
|
848
|
-
*/
|
|
849
|
-
center(): Promise<CLLocationCoordinate2D> {
|
|
850
|
-
return bindings.call(this, "CLRegion.center", []);
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
/**
|
|
854
|
-
* macOS 10.7+
|
|
855
|
-
* @deprecated Please see CLCircularRegion
|
|
856
|
-
*/
|
|
857
|
-
containsCoordinate(coordinate: CLLocationCoordinate2D): Promise<boolean> {
|
|
858
|
-
return bindings.call(this, "CLRegion.contains(_:)", [coordinate]);
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* macOS 10.7+
|
|
863
|
-
* @deprecated Please see CLCircularRegion
|
|
864
|
-
*/
|
|
865
|
-
static initCircularRegionWithCenterRadiusIdentifier(ctx: TokamakContext, center: CLLocationCoordinate2D, radius: CLLocationDistance, identifier: string): Promise<CLRegion> {
|
|
866
|
-
return bindings.call(ctx, "CLRegion.init(circularRegionWithCenter:radius:identifier:)", [center, radius, identifier]);
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
/**
|
|
870
|
-
* macOS 10.7+
|
|
871
|
-
* @deprecated Please see CLCircularRegion
|
|
872
|
-
*/
|
|
873
|
-
radius(): Promise<CLLocationDistance> {
|
|
874
|
-
return bindings.call(this, "CLRegion.radius", []);
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
/** iOS 7.0+, macOS 10.10+ */
|
|
879
|
-
export type CLRegionState = "inside" | "outside" | "unknown";
|
|
880
|
-
|
|
881
|
-
/** iOS 18.0+ */
|
|
882
|
-
export class CLServiceSession extends NativeObject {
|
|
883
|
-
/** iOS 18.0+ */
|
|
884
|
-
diagnostics(): ReadableStream<CLServiceSession$Diagnostic> {
|
|
885
|
-
return bindings.stream(this, "CLServiceSession.diagnostics", []);
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
/** iOS 18.0+ */
|
|
889
|
-
static initAuthorization(ctx: TokamakContext, authorization: CLServiceSession$AuthorizationRequirement): Promise<CLServiceSession> {
|
|
890
|
-
return bindings.call(ctx, "CLServiceSession.init(authorization:)", [authorization]);
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
/** iOS 18.0+ */
|
|
894
|
-
static initAuthorizationFullAccuracyPurposeKey(ctx: TokamakContext, authorization: CLServiceSession$AuthorizationRequirement, fullAccuracyPurposeKey: string): Promise<CLServiceSession> {
|
|
895
|
-
return bindings.call(ctx, "CLServiceSession.init(authorization:fullAccuracyPurposeKey:)", [authorization, fullAccuracyPurposeKey]);
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
/** iOS 18.0+ */
|
|
899
|
-
invalidate(): Promise<void> {
|
|
900
|
-
return bindings.call(this, "CLServiceSession.invalidate()", []);
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
/** iOS 18.0+ */
|
|
905
|
-
export type CLServiceSession$AuthorizationRequirement = "always" | "none" | "whenInUse";
|
|
906
|
-
|
|
907
|
-
/** iOS 18.0+ */
|
|
908
|
-
export interface CLServiceSession$Diagnostic {
|
|
909
|
-
alwaysAuthorizationDenied: boolean;
|
|
910
|
-
authorizationDenied: boolean;
|
|
911
|
-
authorizationDeniedGlobally: boolean;
|
|
912
|
-
authorizationRequestInProgress: boolean;
|
|
913
|
-
authorizationRestricted: boolean;
|
|
914
|
-
fullAccuracyDenied: boolean;
|
|
915
|
-
insufficientlyInUse: boolean;
|
|
916
|
-
serviceSessionRequired: boolean;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
920
|
-
export class CLVisit extends NativeObject {
|
|
921
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
922
|
-
arrivalDate(): Promise<Date> {
|
|
923
|
-
return bindings.call(this, "CLVisit.arrivalDate", []);
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
927
|
-
coordinate(): Promise<CLLocationCoordinate2D> {
|
|
928
|
-
return bindings.call(this, "CLVisit.coordinate", []);
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
932
|
-
departureDate(): Promise<Date> {
|
|
933
|
-
return bindings.call(this, "CLVisit.departureDate", []);
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
937
|
-
horizontalAccuracy(): Promise<CLLocationAccuracy> {
|
|
938
|
-
return bindings.call(this, "CLVisit.horizontalAccuracy", []);
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
943
|
-
export class CLFloor extends NativeObject {
|
|
944
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
945
|
-
level(): Promise<number> {
|
|
946
|
-
return bindings.call(this, "CLFloor.level", []);
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
951
|
-
export class CLLocation extends NativeObject {
|
|
952
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
953
|
-
altitude(): Promise<CLLocationDistance> {
|
|
954
|
-
return bindings.call(this, "CLLocation.altitude", []);
|
|
955
|
-
}
|
|
956
|
-
|
|
957
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
958
|
-
coordinate(): Promise<CLLocationCoordinate2D> {
|
|
959
|
-
return bindings.call(this, "CLLocation.coordinate", []);
|
|
960
|
-
}
|
|
961
|
-
|
|
962
|
-
/** iOS 2.2+, macOS 10.7+ */
|
|
963
|
-
course(): Promise<CLLocationDirection> {
|
|
964
|
-
return bindings.call(this, "CLLocation.course", []);
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
/** iOS 13.4+, macOS 10.15.4+ */
|
|
968
|
-
courseAccuracy(): Promise<CLLocationDirectionAccuracy> {
|
|
969
|
-
return bindings.call(this, "CLLocation.courseAccuracy", []);
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
/** iOS 3.2+, macOS 10.6+ */
|
|
973
|
-
distanceFromLocation(location: CLLocation): Promise<CLLocationDistance> {
|
|
974
|
-
return bindings.call(this, "CLLocation.distance(from:)", [location]);
|
|
975
|
-
}
|
|
976
|
-
|
|
977
|
-
/** iOS 15.0+, macOS 12.0+ */
|
|
978
|
-
ellipsoidalAltitude(): Promise<CLLocationDistance> {
|
|
979
|
-
return bindings.call(this, "CLLocation.ellipsoidalAltitude", []);
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
/** iOS 8.0+, macOS 10.15+ */
|
|
983
|
-
floor(): Promise<CLFloor | null> {
|
|
984
|
-
return bindings.call(this, "CLLocation.floor", []);
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
988
|
-
horizontalAccuracy(): Promise<CLLocationAccuracy> {
|
|
989
|
-
return bindings.call(this, "CLLocation.horizontalAccuracy", []);
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
/** iOS 13.4+, macOS 10.15.4+ */
|
|
993
|
-
static initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestamp(ctx: TokamakContext, coordinate: CLLocationCoordinate2D, altitude: CLLocationDistance, hAccuracy: CLLocationAccuracy, vAccuracy: CLLocationAccuracy, course: CLLocationDirection, courseAccuracy: CLLocationDirectionAccuracy, speed: CLLocationSpeed, speedAccuracy: CLLocationSpeedAccuracy, timestamp: Date): Promise<CLLocation> {
|
|
994
|
-
return bindings.call(ctx, "CLLocation.init(coordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:)", [coordinate, altitude, hAccuracy, vAccuracy, course, courseAccuracy, speed, speedAccuracy, timestamp]);
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
/** iOS 15.0+, macOS 12.0+ */
|
|
998
|
-
static initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseCourseAccuracySpeedSpeedAccuracyTimestampSourceInfo(ctx: TokamakContext, coordinate: CLLocationCoordinate2D, altitude: CLLocationDistance, hAccuracy: CLLocationAccuracy, vAccuracy: CLLocationAccuracy, course: CLLocationDirection, courseAccuracy: CLLocationDirectionAccuracy, speed: CLLocationSpeed, speedAccuracy: CLLocationSpeedAccuracy, timestamp: Date, sourceInfo: CLLocationSourceInformation): Promise<CLLocation> {
|
|
999
|
-
return bindings.call(ctx, "CLLocation.init(coordinate:altitude:horizontalAccuracy:verticalAccuracy:course:courseAccuracy:speed:speedAccuracy:timestamp:sourceInfo:)", [coordinate, altitude, hAccuracy, vAccuracy, course, courseAccuracy, speed, speedAccuracy, timestamp, sourceInfo]);
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
/** iOS 4.2+, macOS 10.7+ */
|
|
1003
|
-
static initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyCourseSpeedTimestamp(ctx: TokamakContext, coordinate: CLLocationCoordinate2D, altitude: CLLocationDistance, hAccuracy: CLLocationAccuracy, vAccuracy: CLLocationAccuracy, course: CLLocationDirection, speed: CLLocationSpeed, timestamp: Date): Promise<CLLocation> {
|
|
1004
|
-
return bindings.call(ctx, "CLLocation.init(coordinate:altitude:horizontalAccuracy:verticalAccuracy:course:speed:timestamp:)", [coordinate, altitude, hAccuracy, vAccuracy, course, speed, timestamp]);
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
1008
|
-
static initWithCoordinateAltitudeHorizontalAccuracyVerticalAccuracyTimestamp(ctx: TokamakContext, coordinate: CLLocationCoordinate2D, altitude: CLLocationDistance, hAccuracy: CLLocationAccuracy, vAccuracy: CLLocationAccuracy, timestamp: Date): Promise<CLLocation> {
|
|
1009
|
-
return bindings.call(ctx, "CLLocation.init(coordinate:altitude:horizontalAccuracy:verticalAccuracy:timestamp:)", [coordinate, altitude, hAccuracy, vAccuracy, timestamp]);
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
1013
|
-
static initWithLatitudeLongitude(ctx: TokamakContext, latitude: CLLocationDegrees, longitude: CLLocationDegrees): Promise<CLLocation> {
|
|
1014
|
-
return bindings.call(ctx, "CLLocation.init(latitude:longitude:)", [latitude, longitude]);
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
/** iOS 15.0+, macOS 12.0+ */
|
|
1018
|
-
sourceInformation(): Promise<CLLocationSourceInformation | null> {
|
|
1019
|
-
return bindings.call(this, "CLLocation.sourceInformation", []);
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
/** iOS 2.2+, macOS 10.7+ */
|
|
1023
|
-
speed(): Promise<CLLocationSpeed> {
|
|
1024
|
-
return bindings.call(this, "CLLocation.speed", []);
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
/** iOS 10.0+, macOS 10.15+ */
|
|
1028
|
-
speedAccuracy(): Promise<CLLocationSpeedAccuracy> {
|
|
1029
|
-
return bindings.call(this, "CLLocation.speedAccuracy", []);
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
1033
|
-
timestamp(): Promise<Date> {
|
|
1034
|
-
return bindings.call(this, "CLLocation.timestamp", []);
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
/** iOS 2.0+, macOS 10.6+ */
|
|
1038
|
-
verticalAccuracy(): Promise<CLLocationAccuracy> {
|
|
1039
|
-
return bindings.call(this, "CLLocation.verticalAccuracy", []);
|
|
1040
|
-
}
|
|
1041
|
-
|
|
1042
|
-
/**
|
|
1043
|
-
* macOS 10.15+
|
|
1044
|
-
* @deprecated
|
|
1045
|
-
*/
|
|
1046
|
-
getDistanceFrom(location: CLLocation): Promise<CLLocationDistance> {
|
|
1047
|
-
return bindings.call(this, "CLLocation.getDistanceFrom(_:)", [location]);
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
/** iOS, macOS */
|
|
1052
|
-
export type CLLocationAccuracy = number;
|
|
1053
|
-
|
|
1054
|
-
/** iOS, macOS */
|
|
1055
|
-
export interface CLLocationCoordinate2D {
|
|
1056
|
-
latitude: CLLocationDegrees;
|
|
1057
|
-
longitude: CLLocationDegrees;
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
/** iOS, macOS */
|
|
1061
|
-
export type CLLocationDegrees = number;
|
|
1062
|
-
|
|
1063
|
-
/** iOS, macOS */
|
|
1064
|
-
export type CLLocationDirection = number;
|
|
1065
|
-
|
|
1066
|
-
/** iOS, macOS */
|
|
1067
|
-
export type CLLocationDirectionAccuracy = number;
|
|
1068
|
-
|
|
1069
|
-
/** iOS, macOS */
|
|
1070
|
-
export type CLLocationDistance = number;
|
|
1071
|
-
|
|
1072
|
-
/** iOS 15.0+, macOS 12.0+ */
|
|
1073
|
-
export class CLLocationSourceInformation extends NativeObject {
|
|
1074
|
-
/** iOS 15.0+, macOS 12.0+ */
|
|
1075
|
-
static initWithSoftwareSimulationStateAndExternalAccessoryState(ctx: TokamakContext, isSoftware: boolean, isAccessory: boolean): Promise<CLLocationSourceInformation> {
|
|
1076
|
-
return bindings.call(ctx, "CLLocationSourceInformation.init(softwareSimulationState:andExternalAccessoryState:)", [isSoftware, isAccessory]);
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
/** iOS 15.0+, macOS 12.0+ */
|
|
1080
|
-
isProducedByAccessory(): Promise<boolean> {
|
|
1081
|
-
return bindings.call(this, "CLLocationSourceInformation.isProducedByAccessory", []);
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
|
-
/** iOS 15.0+, macOS 12.0+ */
|
|
1085
|
-
isSimulatedBySoftware(): Promise<boolean> {
|
|
1086
|
-
return bindings.call(this, "CLLocationSourceInformation.isSimulatedBySoftware", []);
|
|
1087
|
-
}
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
/** iOS, macOS */
|
|
1091
|
-
export type CLLocationSpeed = number;
|
|
1092
|
-
|
|
1093
|
-
/** iOS, macOS */
|
|
1094
|
-
export type CLLocationSpeedAccuracy = number;
|
|
1095
|
-
|
|
1096
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
1097
|
-
export class CLBeaconRegion extends CLRegion {
|
|
1098
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
1099
|
-
beaconIdentityConstraint(): Promise<CLBeaconIdentityConstraint> {
|
|
1100
|
-
return bindings.call(this, "CLBeaconRegion.beaconIdentityConstraint", []);
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
1104
|
-
static initWithBeaconIdentityConstraintIdentifier(ctx: TokamakContext, beaconIdentityConstraint: CLBeaconIdentityConstraint, identifier: string): Promise<CLBeaconRegion> {
|
|
1105
|
-
return bindings.call(ctx, "CLBeaconRegion.init(beaconIdentityConstraint:identifier:)", [beaconIdentityConstraint, identifier]);
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
/**
|
|
1109
|
-
* iOS 7.0+, macOS 10.15+
|
|
1110
|
-
* @deprecated
|
|
1111
|
-
*/
|
|
1112
|
-
static initWithProximityUUIDIdentifier(ctx: TokamakContext, proximityUUID: string, identifier: string): Promise<CLBeaconRegion> {
|
|
1113
|
-
return bindings.call(ctx, "CLBeaconRegion.init(proximityUUID:identifier:)", [proximityUUID, identifier]);
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
/**
|
|
1117
|
-
* iOS 7.0+, macOS 10.15+
|
|
1118
|
-
* @deprecated
|
|
1119
|
-
*/
|
|
1120
|
-
static initWithProximityUUIDMajorIdentifier(ctx: TokamakContext, proximityUUID: string, major: CLBeaconMajorValue, identifier: string): Promise<CLBeaconRegion> {
|
|
1121
|
-
return bindings.call(ctx, "CLBeaconRegion.init(proximityUUID:major:identifier:)", [proximityUUID, major, identifier]);
|
|
1122
|
-
}
|
|
1123
|
-
|
|
1124
|
-
/**
|
|
1125
|
-
* iOS 7.0+, macOS 10.15+
|
|
1126
|
-
* @deprecated
|
|
1127
|
-
*/
|
|
1128
|
-
static initWithProximityUUIDMajorMinorIdentifier(ctx: TokamakContext, proximityUUID: string, major: CLBeaconMajorValue, minor: CLBeaconMinorValue, identifier: string): Promise<CLBeaconRegion> {
|
|
1129
|
-
return bindings.call(ctx, "CLBeaconRegion.init(proximityUUID:major:minor:identifier:)", [proximityUUID, major, minor, identifier]);
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
1133
|
-
static initWithUUIDIdentifier(ctx: TokamakContext, uuid: string, identifier: string): Promise<CLBeaconRegion> {
|
|
1134
|
-
return bindings.call(ctx, "CLBeaconRegion.init(uuid:identifier:)", [uuid, identifier]);
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
1138
|
-
static initWithUUIDMajorIdentifier(ctx: TokamakContext, uuid: string, major: CLBeaconMajorValue, identifier: string): Promise<CLBeaconRegion> {
|
|
1139
|
-
return bindings.call(ctx, "CLBeaconRegion.init(uuid:major:identifier:)", [uuid, major, identifier]);
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
1143
|
-
static initWithUUIDMajorMinorIdentifier(ctx: TokamakContext, uuid: string, major: CLBeaconMajorValue, minor: CLBeaconMinorValue, identifier: string): Promise<CLBeaconRegion> {
|
|
1144
|
-
return bindings.call(ctx, "CLBeaconRegion.init(uuid:major:minor:identifier:)", [uuid, major, minor, identifier]);
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
1148
|
-
major(): Promise<number | null> {
|
|
1149
|
-
return bindings.call(this, "CLBeaconRegion.major", []);
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
1153
|
-
minor(): Promise<number | null> {
|
|
1154
|
-
return bindings.call(this, "CLBeaconRegion.minor", []);
|
|
1155
|
-
}
|
|
1156
|
-
|
|
1157
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
1158
|
-
notifyEntryStateOnDisplay(): Promise<boolean> {
|
|
1159
|
-
return bindings.call(this, "CLBeaconRegion.notifyEntryStateOnDisplay", []);
|
|
1160
|
-
}
|
|
1161
|
-
|
|
1162
|
-
/** iOS 7.0+, macOS 10.15+ */
|
|
1163
|
-
setNotifyEntryStateOnDisplay(value: boolean): Promise<void> {
|
|
1164
|
-
return bindings.call(this, "CLBeaconRegion.notifyEntryStateOnDisplay=", [value]);
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1167
|
-
/**
|
|
1168
|
-
* iOS 7.0+, macOS 10.15+
|
|
1169
|
-
* @deprecated
|
|
1170
|
-
*/
|
|
1171
|
-
proximityUUID(): Promise<string> {
|
|
1172
|
-
return bindings.call(this, "CLBeaconRegion.proximityUUID", []);
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
/** iOS 13.0+, macOS 10.15+ */
|
|
1176
|
-
uuid(): Promise<string> {
|
|
1177
|
-
return bindings.call(this, "CLBeaconRegion.uuid", []);
|
|
1178
|
-
}
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
/** iOS 7.0+, macOS 10.10+ */
|
|
1182
|
-
export class CLCircularRegion extends CLRegion {
|
|
1183
|
-
/** iOS 7.0+, macOS 10.10+ */
|
|
1184
|
-
center(): Promise<CLLocationCoordinate2D> {
|
|
1185
|
-
return bindings.call(this, "CLCircularRegion.center", []);
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
/** iOS 7.0+, macOS 10.10+ */
|
|
1189
|
-
containsCoordinate(coordinate: CLLocationCoordinate2D): Promise<boolean> {
|
|
1190
|
-
return bindings.call(this, "CLCircularRegion.contains(_:)", [coordinate]);
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
/** iOS 7.0+, macOS 10.10+ */
|
|
1194
|
-
static initWithCenterRadiusIdentifier(ctx: TokamakContext, center: CLLocationCoordinate2D, radius: CLLocationDistance, identifier: string): Promise<CLCircularRegion> {
|
|
1195
|
-
return bindings.call(ctx, "CLCircularRegion.init(center:radius:identifier:)", [center, radius, identifier]);
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
/** iOS 7.0+, macOS 10.10+ */
|
|
1199
|
-
radius(): Promise<CLLocationDistance> {
|
|
1200
|
-
return bindings.call(this, "CLCircularRegion.radius", []);
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
/** iOS 15.0+ */
|
|
1205
|
-
export function CLLocationPushServiceErrorDomain(ctx: TokamakContext): Promise<string> {
|
|
1206
|
-
return bindings.call(ctx, "CLLocationPushServiceErrorDomain", []);
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
/** iOS, macOS */
|
|
1210
|
-
export function CL_TARGET_SUPPORTS_CONDITIONS(ctx: TokamakContext): Promise<number> {
|
|
1211
|
-
return bindings.call(ctx, "CL_TARGET_SUPPORTS_CONDITIONS", []);
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
/** iOS, macOS */
|
|
1215
|
-
export function kCLErrorDomain(ctx: TokamakContext): Promise<string> {
|
|
1216
|
-
return bindings.call(ctx, "kCLErrorDomain", []);
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
/** iOS 5.0+, macOS 10.7+ */
|
|
1220
|
-
export function kCLErrorUserInfoAlternateRegionKey(ctx: TokamakContext): Promise<string> {
|
|
1221
|
-
return bindings.call(ctx, "kCLErrorUserInfoAlternateRegionKey", []);
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
/** iOS, macOS */
|
|
1225
|
-
export function kCLHeadingFilterNone(ctx: TokamakContext): Promise<CLLocationDegrees> {
|
|
1226
|
-
return bindings.call(ctx, "kCLHeadingFilterNone", []);
|
|
1227
|
-
}
|
|
1228
|
-
|
|
1229
|
-
/** iOS 4.0+, macOS 10.7+ */
|
|
1230
|
-
export function CLLocationCoordinate2DIsValid(ctx: TokamakContext, coord: CLLocationCoordinate2D): Promise<boolean> {
|
|
1231
|
-
return bindings.call(ctx, "CLLocationCoordinate2DIsValid(_:)", [coord]);
|
|
1232
|
-
}
|
|
1233
|
-
|
|
1234
|
-
/** iOS 4.0+, macOS 10.7+ */
|
|
1235
|
-
export function CLLocationCoordinate2DMake(ctx: TokamakContext, latitude: CLLocationDegrees, longitude: CLLocationDegrees): Promise<CLLocationCoordinate2D> {
|
|
1236
|
-
return bindings.call(ctx, "CLLocationCoordinate2DMake(_:_:)", [latitude, longitude]);
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
/** iOS 6.0+, macOS 10.14+ */
|
|
1240
|
-
export function CLLocationDistanceMax(ctx: TokamakContext): Promise<CLLocationDistance> {
|
|
1241
|
-
return bindings.call(ctx, "CLLocationDistanceMax", []);
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
/** iOS 6.0+, macOS 10.14+ */
|
|
1245
|
-
export function CLTimeIntervalMax(ctx: TokamakContext): Promise<number> {
|
|
1246
|
-
return bindings.call(ctx, "CLTimeIntervalMax", []);
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
/** iOS, macOS */
|
|
1250
|
-
export function kCLDistanceFilterNone(ctx: TokamakContext): Promise<CLLocationDistance> {
|
|
1251
|
-
return bindings.call(ctx, "kCLDistanceFilterNone", []);
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
/** iOS, macOS */
|
|
1255
|
-
export function kCLLocationAccuracyBest(ctx: TokamakContext): Promise<CLLocationAccuracy> {
|
|
1256
|
-
return bindings.call(ctx, "kCLLocationAccuracyBest", []);
|
|
1257
|
-
}
|
|
1258
|
-
|
|
1259
|
-
/** iOS 4.0+, macOS 10.7+ */
|
|
1260
|
-
export function kCLLocationAccuracyBestForNavigation(ctx: TokamakContext): Promise<CLLocationAccuracy> {
|
|
1261
|
-
return bindings.call(ctx, "kCLLocationAccuracyBestForNavigation", []);
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
/** iOS, macOS */
|
|
1265
|
-
export function kCLLocationAccuracyHundredMeters(ctx: TokamakContext): Promise<CLLocationAccuracy> {
|
|
1266
|
-
return bindings.call(ctx, "kCLLocationAccuracyHundredMeters", []);
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
/** iOS, macOS */
|
|
1270
|
-
export function kCLLocationAccuracyKilometer(ctx: TokamakContext): Promise<CLLocationAccuracy> {
|
|
1271
|
-
return bindings.call(ctx, "kCLLocationAccuracyKilometer", []);
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
/** iOS, macOS */
|
|
1275
|
-
export function kCLLocationAccuracyNearestTenMeters(ctx: TokamakContext): Promise<CLLocationAccuracy> {
|
|
1276
|
-
return bindings.call(ctx, "kCLLocationAccuracyNearestTenMeters", []);
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
/** iOS 14.0+, macOS 11.0+ */
|
|
1280
|
-
export function kCLLocationAccuracyReduced(ctx: TokamakContext): Promise<CLLocationAccuracy> {
|
|
1281
|
-
return bindings.call(ctx, "kCLLocationAccuracyReduced", []);
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
/** iOS, macOS */
|
|
1285
|
-
export function kCLLocationAccuracyThreeKilometers(ctx: TokamakContext): Promise<CLLocationAccuracy> {
|
|
1286
|
-
return bindings.call(ctx, "kCLLocationAccuracyThreeKilometers", []);
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
/** iOS 4.0+, macOS 10.7+ */
|
|
1290
|
-
export function kCLLocationCoordinate2DInvalid(ctx: TokamakContext): Promise<CLLocationCoordinate2D> {
|
|
1291
|
-
return bindings.call(ctx, "kCLLocationCoordinate2DInvalid", []);
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
const classes: Classes = {
|
|
1295
|
-
"CoreLocation.CLBackgroundActivitySession": CLBackgroundActivitySession,
|
|
1296
|
-
"CLBeacon": CLBeacon,
|
|
1297
|
-
"CLBeaconIdentityConstraint": CLBeaconIdentityConstraint,
|
|
1298
|
-
"CLBeaconRegion": CLBeaconRegion,
|
|
1299
|
-
"CLCircularRegion": CLCircularRegion,
|
|
1300
|
-
"CoreLocation.CLCondition": CLCondition,
|
|
1301
|
-
"CLGeocoder": CLGeocoder,
|
|
1302
|
-
"CLHeading": CLHeading,
|
|
1303
|
-
"CLLocationManager": CLLocationManager,
|
|
1304
|
-
"CLLocationManagerDelegate": CLLocationManagerDelegate,
|
|
1305
|
-
"CLLocationPushServiceExtension": CLLocationPushServiceExtension,
|
|
1306
|
-
"CoreLocation.CLMonitor": CLMonitor,
|
|
1307
|
-
"CLPlacemark": CLPlacemark,
|
|
1308
|
-
"CLRegion": CLRegion,
|
|
1309
|
-
"CoreLocation.CLServiceSession": CLServiceSession,
|
|
1310
|
-
"CLVisit": CLVisit,
|
|
1311
|
-
"CLFloor": CLFloor,
|
|
1312
|
-
"CLLocation": CLLocation,
|
|
1313
|
-
"CLLocationSourceInformation": CLLocationSourceInformation,
|
|
1314
|
-
};
|