Repository navigation
Expand file tree
/
Copy pathMapKit.d.ts
More file actions
2391 lines (1364 loc) · 63.1 KB
/
Copy pathMapKit.d.ts
File metadata and controls
2391 lines (1364 loc) · 63.1 KB
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// <reference types="@nativescript/objc-node-api" />
/// <reference path="./Runtime.d.ts" />
/// <reference path="./UIKit.d.ts" />
/// <reference path="./Foundation.d.ts" />
/// <reference path="./CoreLocation.d.ts" />
declare const MKMapCameraZoomDefault: number;
declare const MKMapViewDefaultClusterAnnotationViewReuseIdentifier: string;
declare const MKAnnotationViewZPriorityDefaultUnselected: number;
declare const MKAnnotationViewZPriorityDefaultSelected: number;
declare const MKFeatureDisplayPriorityDefaultLow: number;
declare const MKLaunchOptionsMapSpanKey: string;
declare const MKLaunchOptionsDirectionsModeWalking: string;
declare const MKLaunchOptionsDirectionsModeDefault: string;
declare const MKPointOfInterestCategoryZoo: string;
declare const MKPointOfInterestCategoryWinery: string;
declare const MKPointOfInterestCategoryTennis: string;
declare const MKPointOfInterestCategorySwimming: string;
declare const MKPointOfInterestCategoryStore: string;
declare const MKPointOfInterestCategorySpa: string;
declare const MKPointOfInterestCategorySoccer: string;
declare const MKPointOfInterestCategorySkiing: string;
declare const MKPointOfInterestCategorySkating: string;
declare const MKPointOfInterestCategoryRVPark: string;
declare const MKPointOfInterestCategoryRockClimbing: string;
declare const MKPointOfInterestCategoryPostOffice: string;
declare const MKPointOfInterestCategoryPolice: string;
declare const MKPointOfInterestCategoryPlanetarium: string;
declare const MKPointOfInterestCategoryPharmacy: string;
declare const MKPointOfInterestCategoryPark: string;
declare const MKPointOfInterestCategoryNationalMonument: string;
declare const MKPointOfInterestCategoryMusicVenue: string;
declare const MKPointOfInterestCategoryMovieTheater: string;
declare const MKPointOfInterestCategoryMiniGolf: string;
declare const MKPointOfInterestCategoryMarina: string;
declare const MKPointOfInterestCategoryMailbox: string;
declare const MKPointOfInterestCategoryLandmark: string;
declare const MKPointOfInterestCategoryHospital: string;
declare const MKPointOfInterestCategoryGolf: string;
declare const MKPointOfInterestCategoryGasStation: string;
declare const MKPointOfInterestCategoryFoodMarket: string;
declare const MKPointOfInterestCategoryFishing: string;
declare const MKPointOfInterestCategoryFireStation: string;
declare const MKPointOfInterestCategoryEVCharger: string;
declare const MKPointOfInterestCategoryDistillery: string;
declare const MKPointOfInterestCategoryCarRental: string;
declare const MKPointOfInterestCategoryCampground: string;
declare const MKPointOfInterestCategoryCafe: string;
declare const MKPointOfInterestCategoryBowling: string;
declare const MKPointOfInterestCategoryBeauty: string;
declare const MKPointOfInterestCategoryBeach: string;
declare const MKPointOfInterestCategoryBasketball: string;
declare const MKPointOfInterestCategoryBaseball: string;
declare const MKPointOfInterestCategoryBank: string;
declare const MKPointOfInterestCategoryBakery: string;
declare const MKPointOfInterestCategoryAnimalService: string;
declare const MKMapRectNull: MKMapRect;
declare const MKMapSizeWorld: MKMapSize;
declare const MKPointOfInterestCategorySurfing: string;
declare const MKPointOfInterestCategoryMuseum: string;
declare const MKPointOfInterestCategoryHiking: string;
declare const MKPointOfInterestCategoryConventionCenter: string;
declare const MKPointOfInterestCategoryAquarium: string;
declare const MKPointOfInterestCategoryLibrary: string;
declare const MKPointOfInterestCategoryKayaking: string;
declare const MKPointOfInterestCategoryTheater: string;
declare const MKPointOfInterestCategoryBrewery: string;
declare const MKMapItemTypeIdentifier: string;
declare const MKPointOfInterestCategoryGoKart: string;
declare const MKLaunchOptionsMapCenterKey: string;
declare const MKPointOfInterestCategoryRestaurant: string;
declare const MKPointsOfInterestRequestMaxRadius: number;
declare const MKPointOfInterestCategoryUniversity: string;
declare const MKPointOfInterestCategoryPublicTransport: string;
declare const MKFeatureDisplayPriorityRequired: number;
declare const MKPointOfInterestCategorySkatePark: string;
declare const MKPointOfInterestCategoryFitnessCenter: string;
declare const MKPointOfInterestCategoryParking: string;
declare const MKPointOfInterestCategorySchool: string;
declare const MKPointOfInterestCategoryCastle: string;
declare const MKLaunchOptionsDirectionsModeKey: string;
declare const MKPointOfInterestCategoryAmusementPark: string;
declare const MKPointOfInterestCategoryFortress: string;
declare const MKLaunchOptionsDirectionsModeDriving: string;
declare const MKPointOfInterestCategoryAirport: string;
declare const MKPointOfInterestCategoryATM: string;
declare const MKPointOfInterestCategoryNationalPark: string;
declare const MKPointOfInterestCategoryStadium: string;
declare const MKPointOfInterestCategoryVolleyball: string;
declare const MKLaunchOptionsDirectionsModeTransit: string;
declare const MKFeatureDisplayPriorityDefaultHigh: number;
declare const MKPointOfInterestCategoryNightlife: string;
declare const MKErrorDomain: string;
declare const MKLaunchOptionsShowsTrafficKey: string;
declare const MKAnnotationCalloutInfoDidChangeNotification: string;
declare const MKLaunchOptionsMapTypeKey: string;
declare const MKPointOfInterestCategoryLaundry: string;
declare const MKMapRectWorld: MKMapRect;
declare const MKLaunchOptionsCameraKey: string;
declare const MKMapViewDefaultAnnotationViewReuseIdentifier: string;
declare const MKAnnotationViewZPriorityMax: number;
declare const MKPointOfInterestCategoryHotel: string;
declare const MKPointOfInterestCategoryFairground: string;
declare const MKPointOfInterestCategoryRestroom: string;
declare const MKPointOfInterestCategoryAutomotiveRepair: string;
declare const MKAnnotationViewZPriorityMin: number;
declare const MKScaleViewAlignment: {
Leading: 0,
Trailing: 1,
};
declare const MKStandardMapEmphasisStyle: {
Default: 0,
Muted: 1,
};
declare const MKDirectionsTransportType: {
Automobile: 1,
Walking: 2,
Transit: 4,
Any: 268435455,
};
declare const MKLocalSearchCompleterResultType: {
Address: 1,
PointOfInterest: 2,
Query: 4,
PhysicalFeature: 8,
};
declare const MKOverlayLevel: {
Roads: 0,
Labels: 1,
};
declare const MKMapItemDetailSelectionAccessoryCalloutStyle: {
Automatic: 0,
Full: 1,
Compact: 2,
};
declare const MKLocalSearchRegionPriority: {
Default: 0,
Required: 1,
};
declare const MKFeatureVisibility: {
Adaptive: 0,
Hidden: 1,
Visible: 2,
};
declare const MKErrorCode: {
Unknown: 1,
ServerFailure: 2,
LoadingThrottled: 3,
PlacemarkNotFound: 4,
DirectionsNotFound: 5,
DecodingFailed: 6,
};
declare const MKAnnotationViewCollisionMode: {
Rectangle: 0,
Circle: 1,
None: 2,
};
declare const MKAnnotationViewDragState: {
None: 0,
Starting: 1,
Dragging: 2,
Canceling: 3,
Ending: 4,
};
declare const MKAddressFilterOption: {
Country: 1,
AdministrativeArea: 2,
SubAdministrativeArea: 4,
Locality: 8,
SubLocality: 16,
PostalCode: 32,
};
declare const MKDistanceFormatterUnitStyle: {
Default: 0,
Abbreviated: 1,
Full: 2,
};
declare const MKPinAnnotationColor: {
Red: 0,
Green: 1,
Purple: 2,
};
declare const MKDistanceFormatterUnits: {
Default: 0,
Metric: 1,
Imperial: 2,
ImperialWithYards: 3,
};
declare const MKMapFeatureOptions: {
PointsOfInterest: 1,
Territories: 2,
PhysicalFeatures: 4,
};
declare const MKDirectionsRoutePreference: {
Any: 0,
Avoid: 1,
};
declare const MKSearchCompletionFilterType: {
AndQueries: 0,
Only: 1,
};
declare const MKUserTrackingMode: {
None: 0,
Follow: 1,
FollowWithHeading: 2,
};
declare const MKMapFeatureType: {
PointOfInterest: 0,
Territory: 1,
PhysicalFeature: 2,
};
declare const MKMapType: {
Standard: 0,
Satellite: 1,
Hybrid: 2,
SatelliteFlyover: 3,
HybridFlyover: 4,
MutedStandard: 5,
};
declare const MKLocalSearchResultType: {
Address: 1,
PointOfInterest: 2,
PhysicalFeature: 4,
};
declare const MKMapElevationStyle: {
Flat: 0,
Realistic: 1,
};
declare const MKLookAroundBadgePosition: {
TopLeading: 0,
TopTrailing: 1,
BottomTrailing: 2,
};
declare class MKMapSize {
constructor(init?: MKMapSize);
width: number;
height: number;
}
declare class MKCoordinateRegion {
constructor(init?: MKCoordinateRegion);
center: CLLocationCoordinate2D;
span: MKCoordinateSpan;
}
declare class MKCoordinateSpan {
constructor(init?: MKCoordinateSpan);
latitudeDelta: number;
longitudeDelta: number;
}
declare class MKMapRect {
constructor(init?: MKMapRect);
origin: MKMapPoint;
size: MKMapSize;
}
declare class MKMapPoint {
constructor(init?: MKMapPoint);
x: number;
y: number;
}
declare class MKTileOverlayPath {
constructor(init?: MKTileOverlayPath);
x: number;
y: number;
z: number;
contentScaleFactor: number;
}
declare function MKCoordinateRegionMakeWithDistance(centerCoordinate: CLLocationCoordinate2D, latitudinalMeters: number, longitudinalMeters: number): MKCoordinateRegion;
declare function MKMapPointForCoordinate(coordinate: CLLocationCoordinate2D): MKMapPoint;
declare function MKCoordinateForMapPoint(mapPoint: MKMapPoint): CLLocationCoordinate2D;
declare function MKMetersPerMapPointAtLatitude(latitude: number): number;
declare function MKMapPointsPerMeterAtLatitude(latitude: number): number;
declare function MKMetersBetweenMapPoints(a: MKMapPoint, b: MKMapPoint): number;
declare function MKMapRectUnion(rect1: MKMapRect, rect2: MKMapRect): MKMapRect;
declare function MKMapRectIntersection(rect1: MKMapRect, rect2: MKMapRect): MKMapRect;
declare function MKMapRectInset(rect: MKMapRect, dx: number, dy: number): MKMapRect;
declare function MKMapRectOffset(rect: MKMapRect, dx: number, dy: number): MKMapRect;
declare function MKMapRectDivide(rect: MKMapRect, slice: interop.PointerConvertible, remainder: interop.PointerConvertible, amount: number, edge: interop.Enum<typeof CGRectEdge>): void;
declare function MKMapRectContainsPoint(rect: MKMapRect, point: MKMapPoint): boolean;
declare function MKMapRectContainsRect(rect1: MKMapRect, rect2: MKMapRect): boolean;
declare function MKMapRectIntersectsRect(rect1: MKMapRect, rect2: MKMapRect): boolean;
declare function MKCoordinateRegionForMapRect(rect: MKMapRect): MKCoordinateRegion;
declare function MKMapRectSpans180thMeridian(rect: MKMapRect): boolean;
declare function MKMapRectRemainder(rect: MKMapRect): MKMapRect;
declare function MKRoadWidthAtZoomScale(zoomScale: number): number;
declare function MKRoadWidthAtZoomScale(zoomScale: number): number;
declare interface MKMapItemDetailViewControllerDelegate extends NSObjectProtocol {
mapItemDetailViewControllerDidFinish(detailViewController: MKMapItemDetailViewController): void;
}
declare class MKMapItemDetailViewControllerDelegate extends NativeObject implements MKMapItemDetailViewControllerDelegate {
}
declare interface MKLookAroundViewControllerDelegate extends NSObjectProtocol {
lookAroundViewControllerWillUpdateScene?(viewController: MKLookAroundViewController): void;
lookAroundViewControllerDidUpdateScene?(viewController: MKLookAroundViewController): void;
lookAroundViewControllerWillPresentFullScreen?(viewController: MKLookAroundViewController): void;
lookAroundViewControllerDidPresentFullScreen?(viewController: MKLookAroundViewController): void;
lookAroundViewControllerWillDismissFullScreen?(viewController: MKLookAroundViewController): void;
lookAroundViewControllerDidDismissFullScreen?(viewController: MKLookAroundViewController): void;
}
declare class MKLookAroundViewControllerDelegate extends NativeObject implements MKLookAroundViewControllerDelegate {
}
declare interface MKLocalSearchCompleterDelegate extends NSObjectProtocol {
completerDidUpdateResults?(completer: MKLocalSearchCompleter): void;
completerDidFailWithError?(completer: MKLocalSearchCompleter, error: NSError): void;
}
declare class MKLocalSearchCompleterDelegate extends NativeObject implements MKLocalSearchCompleterDelegate {
}
declare interface MKMapViewDelegate extends NSObjectProtocol {
mapViewRegionWillChangeAnimated?(mapView: MKMapView, animated: boolean): void;
mapViewRegionDidChangeAnimated?(mapView: MKMapView, animated: boolean): void;
mapViewDidChangeVisibleRegion?(mapView: MKMapView): void;
mapViewWillStartLoadingMap?(mapView: MKMapView): void;
mapViewDidFinishLoadingMap?(mapView: MKMapView): void;
mapViewDidFailLoadingMapWithError?(mapView: MKMapView, error: NSError): void;
mapViewWillStartRenderingMap?(mapView: MKMapView): void;
mapViewDidFinishRenderingMapFullyRendered?(mapView: MKMapView, fullyRendered: boolean): void;
mapViewViewForAnnotation?(mapView: MKMapView, annotation: MKAnnotation): MKAnnotationView;
mapViewDidAddAnnotationViews?(mapView: MKMapView, views: NSArray<interop.Object> | Array<interop.Object>): void;
mapViewAnnotationViewCalloutAccessoryControlTapped?(mapView: MKMapView, view: MKAnnotationView, control: UIControl): void;
mapViewDidSelectAnnotationView?(mapView: MKMapView, view: MKAnnotationView): void;
mapViewDidDeselectAnnotationView?(mapView: MKMapView, view: MKAnnotationView): void;
mapViewDidSelectAnnotation?(mapView: MKMapView, annotation: MKAnnotation): void;
mapViewDidDeselectAnnotation?(mapView: MKMapView, annotation: MKAnnotation): void;
mapViewSelectionAccessoryForAnnotation?(mapView: MKMapView, annotation: MKAnnotation): MKSelectionAccessory;
mapViewWillStartLocatingUser?(mapView: MKMapView): void;
mapViewDidStopLocatingUser?(mapView: MKMapView): void;
mapViewDidUpdateUserLocation?(mapView: MKMapView, userLocation: MKUserLocation): void;
mapViewDidFailToLocateUserWithError?(mapView: MKMapView, error: NSError): void;
mapViewAnnotationViewDidChangeDragStateFromOldState?(mapView: MKMapView, view: MKAnnotationView, newState: interop.Enum<typeof MKAnnotationViewDragState>, oldState: interop.Enum<typeof MKAnnotationViewDragState>): void;
mapViewDidChangeUserTrackingModeAnimated?(mapView: MKMapView, mode: interop.Enum<typeof MKUserTrackingMode>, animated: boolean): void;
mapViewRendererForOverlay?(mapView: MKMapView, overlay: MKOverlay): MKOverlayRenderer;
mapViewDidAddOverlayRenderers?(mapView: MKMapView, renderers: NSArray<interop.Object> | Array<interop.Object>): void;
mapViewViewForOverlay?(mapView: MKMapView, overlay: MKOverlay): MKOverlayView;
mapViewDidAddOverlayViews?(mapView: MKMapView, overlayViews: NSArray<interop.Object> | Array<interop.Object>): void;
mapViewClusterAnnotationForMemberAnnotations?(mapView: MKMapView, memberAnnotations: NSArray<interop.Object> | Array<interop.Object>): MKClusterAnnotation;
}
declare class MKMapViewDelegate extends NativeObject implements MKMapViewDelegate {
}
declare interface MKOverlay extends MKAnnotation {
readonly coordinate: CLLocationCoordinate2D;
readonly boundingMapRect: MKMapRect;
intersectsMapRect?(mapRect: MKMapRect): boolean;
canReplaceMapContent?: boolean;
}
declare class MKOverlay extends NativeObject implements MKOverlay {
}
declare interface MKAnnotation extends NSObjectProtocol {
readonly coordinate: CLLocationCoordinate2D;
readonly title?: string;
readonly subtitle?: string;
}
declare class MKAnnotation extends NativeObject implements MKAnnotation {
}
declare interface MKGeoJSONObject extends NSObjectProtocol {
}
declare class MKGeoJSONObject extends NativeObject implements MKGeoJSONObject {
}
declare interface MKReverseGeocoderDelegate extends NSObjectProtocol {
reverseGeocoderDidFindPlacemark(geocoder: MKReverseGeocoder, placemark: MKPlacemark): void;
reverseGeocoderDidFailWithError(geocoder: MKReverseGeocoder, error: NSError): void;
}
declare class MKReverseGeocoderDelegate extends NativeObject implements MKReverseGeocoderDelegate {
}
declare class MKMapItemRequest extends NSObject {
initWithMapItemIdentifier(identifier: MKMapItemIdentifier): this;
initWithMapFeatureAnnotation(mapFeatureAnnotation: MKMapFeatureAnnotation): this;
getMapItemWithCompletionHandler(completionHandler: (p1: MKMapItem, p2: NSError) => void | null): void;
cancel(): void;
readonly mapItemIdentifier: MKMapItemIdentifier;
readonly mapFeatureAnnotation: MKMapFeatureAnnotation;
readonly featureAnnotation: MKMapFeatureAnnotation;
readonly isCancelled: boolean;
readonly isLoading: boolean;
}
declare class MKMapItemDetailViewController extends UIViewController {
mapItem: MKMapItem;
delegate: MKMapItemDetailViewControllerDelegate;
initWithMapItemDisplaysMap(mapItem: MKMapItem | null, displaysMap: boolean): this;
initWithMapItem(mapItem: MKMapItem | null): this;
}
declare class MKLookAroundSnapshotter extends NSObject {
initWithSceneOptions(scene: MKLookAroundScene, options: MKLookAroundSnapshotOptions): this;
getSnapshotWithCompletionHandler(completionHandler: (p1: MKLookAroundSnapshot, p2: NSError) => void | null): void;
cancel(): void;
readonly isLoading: boolean;
}
declare class MKLookAroundSceneRequest extends NSObject {
initWithCoordinate(coordinate: CLLocationCoordinate2D): this;
initWithMapItem(mapItem: MKMapItem): this;
readonly coordinate: CLLocationCoordinate2D;
readonly mapItem: MKMapItem;
readonly isCancelled: boolean;
readonly isLoading: boolean;
getSceneWithCompletionHandler(completionHandler: (p1: MKLookAroundScene, p2: NSError) => void | null): void;
cancel(): void;
}
declare class MKLookAroundScene extends NSObject implements NSCopying {
copyWithZone(zone: interop.PointerConvertible): interop.Object;
}
declare class MKUserTrackingButton extends UIView {
static userTrackingButtonWithMapView<This extends abstract new (...args: any) => any>(this: This, mapView: MKMapView | null): InstanceType<This>;
mapView: MKMapView;
}
declare class MKUserTrackingBarButtonItem extends UIBarButtonItem {
initWithMapView(mapView: MKMapView | null): this;
mapView: MKMapView;
}
declare class MKScaleView extends UIView {
static scaleViewWithMapView<This extends abstract new (...args: any) => any>(this: This, mapView: MKMapView | null): InstanceType<This>;
mapView: MKMapView;
scaleVisibility: interop.Enum<typeof MKFeatureVisibility>;
legendAlignment: interop.Enum<typeof MKScaleViewAlignment>;
}
declare class MKCircleView extends MKOverlayPathView {
initWithCircle(circle: MKCircle): this;
readonly circle: MKCircle;
}
declare class MKPolylineView extends MKOverlayPathView {
initWithPolyline(polyline: MKPolyline): this;
readonly polyline: MKPolyline;
}
declare class MKOverlayPathView extends MKOverlayView {
fillColor: UIColor;
strokeColor: UIColor;
lineWidth: number;
lineJoin: interop.Enum<typeof CGLineJoin>;
lineCap: interop.Enum<typeof CGLineCap>;
miterLimit: number;
lineDashPhase: number;
get lineDashPattern(): NSArray;
set lineDashPattern(value: NSArray<interop.Object> | Array<interop.Object>);
createPath(): void;
get path(): interop.Pointer;
set path(value: interop.PointerConvertible);
invalidatePath(): void;
applyStrokePropertiesToContextAtZoomScale(context: interop.PointerConvertible, zoomScale: number): void;
applyFillPropertiesToContextAtZoomScale(context: interop.PointerConvertible, zoomScale: number): void;
strokePathInContext(path: interop.PointerConvertible, context: interop.PointerConvertible): void;
fillPathInContext(path: interop.PointerConvertible, context: interop.PointerConvertible): void;
}
declare class MKStandardMapConfiguration extends MKMapConfiguration {
init(): this;
initWithElevationStyle(elevationStyle: interop.Enum<typeof MKMapElevationStyle>): this;
initWithElevationStyleEmphasisStyle(elevationStyle: interop.Enum<typeof MKMapElevationStyle>, emphasisStyle: interop.Enum<typeof MKStandardMapEmphasisStyle>): this;
initWithEmphasisStyle(emphasisStyle: interop.Enum<typeof MKStandardMapEmphasisStyle>): this;
emphasisStyle: interop.Enum<typeof MKStandardMapEmphasisStyle>;
pointOfInterestFilter: MKPointOfInterestFilter;
showsTraffic: boolean;
}
declare class MKMapConfiguration extends NSObject implements NSSecureCoding, NSCopying {
elevationStyle: interop.Enum<typeof MKMapElevationStyle>;
static readonly supportsSecureCoding: boolean;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
copyWithZone(zone: interop.PointerConvertible): interop.Object;
}
declare class MKMapCameraZoomRange extends NSObject implements NSSecureCoding, NSCopying {
initWithMinCenterCoordinateDistanceMaxCenterCoordinateDistance(minDistance: number, maxDistance: number): this;
initWithMinCenterCoordinateDistance(minDistance: number): this;
initWithMaxCenterCoordinateDistance(maxDistance: number): this;
readonly minCenterCoordinateDistance: number;
readonly maxCenterCoordinateDistance: number;
static readonly supportsSecureCoding: boolean;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
copyWithZone(zone: interop.PointerConvertible): interop.Object;
}
declare class MKGeoJSONFeature extends NSObject implements MKGeoJSONObject {
readonly identifier: string;
readonly properties: NSData;
readonly geometry: NSArray;
isEqual(object: interop.Object): boolean;
readonly hash: number;
readonly superclass: interop.Object;
class(): interop.Object;
self(): this;
performSelector(aSelector: string): interop.Object;
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object;
performSelectorWithObjectWithObject(aSelector: string, object1: interop.Object, object2: interop.Object): interop.Object;
readonly isProxy: boolean;
isKindOfClass(aClass: interop.Object): boolean;
isMemberOfClass(aClass: interop.Object): boolean;
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean;
respondsToSelector(aSelector: string): boolean;
retain(): this;
release(): void;
autorelease(): this;
retainCount(): number;
readonly zone: interop.Pointer;
readonly description: string;
readonly debugDescription: string;
}
declare class MKMapCamera extends NSObject implements NSSecureCoding, NSCopying {
centerCoordinate: CLLocationCoordinate2D;
centerCoordinateDistance: number;
heading: number;
pitch: number;
altitude: number;
static camera<This extends abstract new (...args: any) => any>(this: This): InstanceType<This>;
static cameraLookingAtCenterCoordinateFromEyeCoordinateEyeAltitude<This extends abstract new (...args: any) => any>(this: This, centerCoordinate: CLLocationCoordinate2D, eyeCoordinate: CLLocationCoordinate2D, eyeAltitude: number): InstanceType<This>;
static cameraLookingAtCenterCoordinateFromDistancePitchHeading<This extends abstract new (...args: any) => any>(this: This, centerCoordinate: CLLocationCoordinate2D, distance: number, pitch: number, heading: number): InstanceType<This>;
static cameraLookingAtMapItemForViewSizeAllowPitch<This extends abstract new (...args: any) => any>(this: This, mapItem: MKMapItem, viewSize: CGSize, allowPitch: boolean): InstanceType<This>;
static readonly supportsSecureCoding: boolean;
encodeWithCoder(coder: NSCoder): void;
initWithCoder(coder: NSCoder): this;
copyWithZone(zone: interop.PointerConvertible): interop.Object;
}
declare class MKTileOverlay extends NSObject implements MKOverlay {
initWithURLTemplate(URLTemplate: string | null): this;
tileSize: CGSize;
isGeometryFlipped: boolean;
minimumZ: number;
maximumZ: number;
readonly URLTemplate: string;
canReplaceMapContent: boolean;
URLForTilePath(path: MKTileOverlayPath): NSURL;
loadTileAtPathResult(path: MKTileOverlayPath, result: (p1: NSData, p2: NSError) => void | null): void;
readonly coordinate: CLLocationCoordinate2D;
readonly boundingMapRect: MKMapRect;
intersectsMapRect(mapRect: MKMapRect): boolean;
readonly title: string;
readonly subtitle: string;
isEqual(object: interop.Object): boolean;
readonly hash: number;
readonly superclass: interop.Object;
class(): interop.Object;
self(): this;
performSelector(aSelector: string): interop.Object;
performSelectorWithObject(aSelector: string, object: interop.Object): interop.Object;
performSelectorWithObjectWithObject(aSelector: string, object1: interop.Object, object2: interop.Object): interop.Object;
readonly isProxy: boolean;
isKindOfClass(aClass: interop.Object): boolean;
isMemberOfClass(aClass: interop.Object): boolean;
conformsToProtocol(aProtocol: interop.PointerConvertible): boolean;
respondsToSelector(aSelector: string): boolean;
retain(): this;
release(): void;
autorelease(): this;
retainCount(): number;
readonly zone: interop.Pointer;
readonly description: string;
readonly debugDescription: string;
}
declare class MKMapSnapshotOptions extends NSObject implements NSCopying {
preferredConfiguration: MKMapConfiguration;
camera: MKMapCamera;
mapRect: MKMapRect;
region: MKCoordinateRegion;
mapType: interop.Enum<typeof MKMapType>;
pointOfInterestFilter: MKPointOfInterestFilter;
showsPointsOfInterest: boolean;
showsBuildings: boolean;
size: CGSize;
scale: number;
traitCollection: UITraitCollection;
copyWithZone(zone: interop.PointerConvertible): interop.Object;
}
declare class MKRouteStep extends NSObject {
readonly instructions: string;
readonly notice: string;
readonly polyline: MKPolyline;
readonly distance: number;
readonly transportType: interop.Enum<typeof MKDirectionsTransportType>;
}
declare class MKRoute extends NSObject {
readonly name: string;
readonly advisoryNotices: NSArray;
readonly distance: number;
readonly expectedTravelTime: number;
readonly transportType: interop.Enum<typeof MKDirectionsTransportType>;
readonly polyline: MKPolyline;
readonly steps: NSArray;
readonly hasTolls: boolean;
readonly hasHighways: boolean;
}
declare class MKDirectionsResponse extends NSObject {
readonly source: MKMapItem;
readonly destination: MKMapItem;
readonly routes: NSArray;
}
declare class MKDirections extends NSObject {
initWithRequest(request: MKDirectionsRequest): this;
calculateDirectionsWithCompletionHandler(completionHandler: (p1: MKDirectionsResponse, p2: NSError) => void): void;
calculateETAWithCompletionHandler(completionHandler: (p1: MKETAResponse, p2: NSError) => void): void;
cancel(): void;
readonly isCalculating: boolean;
}
declare class MKDirectionsRequest extends NSObject {
source: MKMapItem;
destination: MKMapItem;
transportType: interop.Enum<typeof MKDirectionsTransportType>;
requestsAlternateRoutes: boolean;
departureDate: NSDate;
arrivalDate: NSDate;
tollPreference: interop.Enum<typeof MKDirectionsRoutePreference>;
highwayPreference: interop.Enum<typeof MKDirectionsRoutePreference>;
initWithContentsOfURL(url: NSURL): this;
static isDirectionsRequestURL(url: NSURL): boolean;
}
declare class MKLocalSearchCompleter extends NSObject {
queryFragment: string;
region: MKCoordinateRegion;
regionPriority: interop.Enum<typeof MKLocalSearchRegionPriority>;
filterType: interop.Enum<typeof MKSearchCompletionFilterType>;
resultTypes: interop.Enum<typeof MKLocalSearchCompleterResultType>;
pointOfInterestFilter: MKPointOfInterestFilter;