Skip to content

Commit

Permalink
[MapKit] Added suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Israel Soto committed Jul 29, 2022
1 parent e7730e5 commit dbe921f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 35 deletions.
12 changes: 6 additions & 6 deletions src/MapKit/MKEnums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public enum MKLocalSearchResultType : ulong
public enum MKDirectionsRoutePreference : long
{
Any = 0,
Avoid
Avoid,
}

[Flags]
Expand All @@ -190,7 +190,7 @@ public enum MKMapFeatureOptions : long
{
PointsOfInterest = 1 << (int)MKMapFeatureType.PointOfInterest,
Territories = 1 << (int)MKMapFeatureType.Territory,
PhysicalFeatures = 1 << (int)MKMapFeatureType.PhysicalFeature
PhysicalFeatures = 1 << (int)MKMapFeatureType.PhysicalFeature,
}

[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV]
Expand All @@ -199,15 +199,15 @@ public enum MKLookAroundBadgePosition : long
{
TopLeading = 0,
TopTrailing,
BottomTrailing
BottomTrailing,
}

[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
[Native]
public enum MKMapElevationStyle : long
{
Flat = 0,
Realistic
Realistic,
}

[NoMac, iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV]
Expand All @@ -216,15 +216,15 @@ public enum MKMapFeatureType : long
{
PointOfInterest = 0,
Territory,
PhysicalFeature
PhysicalFeature,
}

[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
[Native]
public enum MKStandardMapEmphasisStyle : long
{
Default = 0,
Muted
Muted,
}

#if !WATCH
Expand Down
46 changes: 17 additions & 29 deletions src/mapkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ partial interface MKMapCamera : NSCopying, NSSecureCoding {
[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
[Static]
[Export ("cameraLookingAtMapItem:forViewSize:allowPitch:")]
MKMapCamera CameraLookingAtMapItem (MKMapItem mapItem, CGSize viewSize, bool allowPitch);
MKMapCamera CameraLookingAt (MKMapItem mapItem, CGSize viewSize, bool allowPitch);
}

[NoWatch]
Expand Down Expand Up @@ -1973,7 +1973,7 @@ interface MKLocalSearchCompleterDelegate {

[NoWatch]
[TV (9,2)][NoWatch][iOS (9,3)]
[BaseType (typeof (NSObject))]
[BaseType (typeof(NSObject))]
#if MONOMAC || XAMCORE_3_0 // "You do not create instances of this class directly"
[DisableDefaultCtor]
#endif
Expand Down Expand Up @@ -2113,7 +2113,7 @@ interface MKPointOfInterestCategory {}
#endif

[TV (13,0), NoWatch, Mac (10,15), iOS (13,0)]
[BaseType (typeof (NSObject))]
[BaseType (typeof(NSObject))]
interface MKPointOfInterestFilter : NSSecureCoding, NSCopying
{
[Static]
Expand Down Expand Up @@ -2146,7 +2146,7 @@ interface MKGeoJsonObject {}
interface IMKGeoJsonObject {}

[TV (13,0), NoWatch, Mac (10,15), iOS (13,0)]
[BaseType (typeof (NSObject), Name = "MKGeoJSONDecoder")]
[BaseType (typeof(NSObject), Name = "MKGeoJSONDecoder")]
interface MKGeoJsonDecoder
{
[Export ("geoJSONObjectsWithData:error:")]
Expand All @@ -2155,7 +2155,7 @@ interface MKGeoJsonDecoder
}

[TV (13,0), NoWatch, Mac (10,15), iOS (13,0)]
[BaseType (typeof (NSObject), Name = "MKGeoJSONFeature")]
[BaseType (typeof(NSObject), Name = "MKGeoJSONFeature")]
interface MKGeoJsonFeature : MKGeoJsonObject
{
[NullAllowed, Export ("identifier")]
Expand All @@ -2169,7 +2169,7 @@ interface MKGeoJsonFeature : MKGeoJsonObject
}

[TV (13,0), NoWatch, Mac (10,15), iOS (13,0)]
[BaseType (typeof (NSObject))]
[BaseType (typeof(NSObject))]
interface MKMapCameraZoomRange : NSSecureCoding, NSCopying
{
[Export ("initWithMinCenterCoordinateDistance:maxCenterCoordinateDistance:")]
Expand All @@ -2195,7 +2195,7 @@ interface MKMapCameraZoomRange : NSSecureCoding, NSCopying
}

[TV (13,0), NoWatch, Mac (10,15), iOS (13,0)]
[BaseType (typeof (NSObject))]
[BaseType (typeof(NSObject))]
interface MKMapCameraBoundary : NSSecureCoding, NSCopying
{
[Export ("initWithMapRect:")]
Expand All @@ -2214,7 +2214,7 @@ interface MKMapCameraBoundary : NSSecureCoding, NSCopying
}

[TV (13,0), NoWatch, Mac (10,15), iOS (13,0)]
[BaseType (typeof (MKShape))]
[BaseType (typeof(MKShape))]
interface MKMultiPolygon : MKOverlay, MKGeoJsonObject
{
[Export ("initWithPolygons:")]
Expand All @@ -2226,7 +2226,7 @@ interface MKMultiPolygon : MKOverlay, MKGeoJsonObject
}

[TV (13,0), NoWatch, Mac (10,15), iOS (13,0)]
[BaseType (typeof (MKOverlayPathRenderer))]
[BaseType (typeof(MKOverlayPathRenderer))]
interface MKMultiPolygonRenderer
{
[Export ("initWithMultiPolygon:")]
Expand All @@ -2237,7 +2237,7 @@ interface MKMultiPolygonRenderer
}

[TV (13,0), NoWatch, Mac (10,15), iOS (13,0)]
[BaseType (typeof (MKShape))]
[BaseType (typeof(MKShape))]
interface MKMultiPolyline : MKOverlay, MKGeoJsonObject
{
[Export ("initWithPolylines:")]
Expand All @@ -2249,7 +2249,7 @@ interface MKMultiPolyline : MKOverlay, MKGeoJsonObject
}

[TV (13,0), NoWatch, Mac (10,15), iOS (13,0)]
[BaseType (typeof (MKOverlayPathRenderer))]
[BaseType (typeof(MKOverlayPathRenderer))]
interface MKMultiPolylineRenderer
{
[Export ("initWithMultiPolyline:")]
Expand All @@ -2272,7 +2272,7 @@ interface MKUserLocationView {

[TV (14, 0), NoWatch, Mac (11, 0), iOS (14, 0)]
[MacCatalyst (14,0)]
[BaseType (typeof (NSObject))]
[BaseType (typeof(NSObject))]
[DisableDefaultCtor]
interface MKLocalPointsOfInterestRequest : NSCopying
{
Expand Down Expand Up @@ -2339,13 +2339,9 @@ interface MKZoomControl

[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
[BaseType (typeof (MKMapConfiguration))]
[DisableDefaultCtor]
[DesignatedDefaultCtor]
interface MKHybridMapConfiguration
{
[DesignatedInitializer]
[Export ("init")]
NativeHandle Constructor ();

[Export ("initWithElevationStyle:")]
NativeHandle Constructor (MKMapElevationStyle elevationStyle);

Expand All @@ -2370,13 +2366,9 @@ interface MKIconStyle

[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
[BaseType (typeof (MKMapConfiguration))]
[DisableDefaultCtor]
[DesignatedDefaultCtor]
interface MKImageryMapConfiguration
{
[DesignatedInitializer]
[Export ("init")]
NativeHandle Constructor ();

[Export ("initWithElevationStyle:")]
NativeHandle Constructor (MKMapElevationStyle elevationStyle);
}
Expand Down Expand Up @@ -2421,6 +2413,7 @@ interface MKLookAroundSceneRequest

[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, NoTV]
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface MKLookAroundSnapshot
{
[Export ("image")]
Expand Down Expand Up @@ -2490,7 +2483,7 @@ interface MKLookAroundViewController : NSSecureCoding, NSCoding

[Export ("initWithNibName:bundle:")]
[DesignatedInitializer]
NativeHandle Constructor ([NullAllowed] string nibNameOrNil, [NullAllowed] NSBundle nibBundleOrNil);
NativeHandle Constructor ([NullAllowed] string nibName, [NullAllowed] NSBundle nibBundle);

[Wrap ("WeakDelegate")]
[NullAllowed]
Expand Down Expand Up @@ -2535,7 +2528,6 @@ interface MKMapFeatureAnnotation : MKAnnotation
[NullAllowed, Export ("iconStyle")]
MKIconStyle IconStyle { get; }

// @property (readonly, nonatomic) MKPointOfInterestCategory _Nullable pointOfInterestCategory;
[BindAs (typeof (MKPointOfInterestCategory))]
[NullAllowed, Export ("pointOfInterestCategory")]
NSString PointOfInterestCategory { get; }
Expand Down Expand Up @@ -2569,13 +2561,9 @@ interface MKMapItemRequest

[Mac (13,0), iOS (16,0), MacCatalyst (16,0), NoWatch, TV (16,0)]
[BaseType (typeof (MKMapConfiguration))]
[DisableDefaultCtor]
[DesignatedDefaultCtor]
interface MKStandardMapConfiguration
{
[DesignatedInitializer]
[Export ("init")]
NativeHandle Constructor ();

[Export ("initWithElevationStyle:")]
NativeHandle Constructor (MKMapElevationStyle elevationStyle);

Expand Down

0 comments on commit dbe921f

Please sign in to comment.