Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created October 11, 2022 17:47
Show Gist options
  • Save vs-mobiletools-engineering-service2/2e5f712e353ca47c4fbe49ad538619ec to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/2e5f712e353ca47c4fbe49ad538619ec to your computer and use it in GitHub Desktop.
previous-api-comparison/diff/dotnet/Microsoft.iOS.Ref/ref/net6.0/Microsoft.iOS.md

API diff: Microsoft.iOS.dll

Microsoft.iOS.dll

Namespace MapKit

Type Changed: MapKit.MKDirectionsRequest

Added properties:

public virtual MKDirectionsRoutePreference HighwayPreference { get; set; }
public virtual MKDirectionsRoutePreference TollPreference { get; set; }

Type Changed: MapKit.MKMapCamera

Added method:

public static MKMapCamera CameraLookingAt (MKMapItem mapItem, CoreGraphics.CGSize viewSize, bool allowPitch);

Type Changed: MapKit.MKMapView

Added properties:

public virtual MKMapConfiguration PreferredConfiguration { get; set; }
public virtual MKMapFeatureOptions SelectableMapFeatures { get; set; }

Added events:

public event System.EventHandler<MKAnnotationEventArgs> DidDeselectAnnotation;
public event System.EventHandler<MKAnnotationEventArgs> DidSelectAnnotation;

Type Changed: MapKit.MKMapViewDelegate

Added methods:

public virtual void DidDeselectAnnotation (MKMapView mapView, IMKAnnotation annotation);
public virtual void DidSelectAnnotation (MKMapView mapView, IMKAnnotation annotation);

Type Changed: MapKit.MKMapViewDelegate_Extensions

Added methods:

public static void DidDeselectAnnotation (this IMKMapViewDelegate This, MKMapView mapView, IMKAnnotation annotation);
public static void DidSelectAnnotation (this IMKMapViewDelegate This, MKMapView mapView, IMKAnnotation annotation);

Type Changed: MapKit.MKOverlayRenderer

Added property:

public virtual CoreGraphics.CGBlendMode BlendMode { get; set; }

Type Changed: MapKit.MKRoute

Added properties:

public virtual bool HasHighways { get; }
public virtual bool HasTolls { get; }

New Type: MapKit.IMKLookAroundViewControllerDelegate

public interface IMKLookAroundViewControllerDelegate : ObjCRuntime.INativeObject, System.IDisposable {
}

New Type: MapKit.MKAnnotationEventArgs

public class MKAnnotationEventArgs : System.EventArgs {
	// constructors
	public MKAnnotationEventArgs (IMKAnnotation annotation);
	// properties
	public IMKAnnotation Annotation { get; set; }
}

New Type: MapKit.MKDirectionsRoutePreference

[Serializable]
public enum MKDirectionsRoutePreference {
	Any = 0,
	Avoid = 1,
}

New Type: MapKit.MKHybridMapConfiguration

public class MKHybridMapConfiguration : MapKit.MKMapConfiguration {
	// constructors
	public MKHybridMapConfiguration ();
	public MKHybridMapConfiguration (Foundation.NSCoder coder);
	protected MKHybridMapConfiguration (Foundation.NSObjectFlag t);
	public MKHybridMapConfiguration (MKMapElevationStyle elevationStyle);
	protected MKHybridMapConfiguration (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual MKPointOfInterestFilter PointOfInterestFilter { get; set; }
	public virtual bool ShowsTraffic { get; set; }
}

New Type: MapKit.MKIconStyle

public class MKIconStyle : Foundation.NSObject {
	// constructors
	protected MKIconStyle (Foundation.NSObjectFlag t);
	protected MKIconStyle (ObjCRuntime.NativeHandle handle);
	// properties
	public virtual UIKit.UIColor BackgroundColor { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual UIKit.UIImage Image { get; }
}

New Type: MapKit.MKImageryMapConfiguration

public class MKImageryMapConfiguration : MapKit.MKMapConfiguration {
	// constructors
	public MKImageryMapConfiguration ();
	public MKImageryMapConfiguration (Foundation.NSCoder coder);
	protected MKImageryMapConfiguration (Foundation.NSObjectFlag t);
	public MKImageryMapConfiguration (MKMapElevationStyle elevationStyle);
	protected MKImageryMapConfiguration (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
}

New Type: MapKit.MKLookAroundBadgePosition

[Serializable]
public enum MKLookAroundBadgePosition {
	BottomTrailing = 2,
	TopLeading = 0,
	TopTrailing = 1,
}

New Type: MapKit.MKLookAroundScene

public class MKLookAroundScene : Foundation.NSObject, Foundation.INSCopying, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	protected MKLookAroundScene (Foundation.NSObjectFlag t);
	protected MKLookAroundScene (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	// methods
	public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
}

New Type: MapKit.MKLookAroundSceneRequest

public class MKLookAroundSceneRequest : Foundation.NSObject {
	// constructors
	public MKLookAroundSceneRequest (CoreLocation.CLLocationCoordinate2D coordinate);
	protected MKLookAroundSceneRequest (Foundation.NSObjectFlag t);
	public MKLookAroundSceneRequest (MKMapItem mapItem);
	protected MKLookAroundSceneRequest (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual CoreLocation.CLLocationCoordinate2D Coordinate { get; }
	public virtual bool IsCancelled { get; }
	public virtual bool IsLoading { get; }
	public virtual MKMapItem MapItem { get; }
	// methods
	public virtual void Cancel ();
	public virtual void GetScene (System.Action<MKLookAroundScene,Foundation.NSError> completionHandler);
	public virtual System.Threading.Tasks.Task<MKLookAroundScene> GetSceneAsync ();
}

New Type: MapKit.MKLookAroundSnapshot

public class MKLookAroundSnapshot : Foundation.NSObject {
	// constructors
	protected MKLookAroundSnapshot (Foundation.NSObjectFlag t);
	protected MKLookAroundSnapshot (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual UIKit.UIImage Image { get; }
}

New Type: MapKit.MKLookAroundSnapshotOptions

public class MKLookAroundSnapshotOptions : Foundation.NSObject {
	// constructors
	public MKLookAroundSnapshotOptions ();
	protected MKLookAroundSnapshotOptions (Foundation.NSObjectFlag t);
	protected MKLookAroundSnapshotOptions (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual MKPointOfInterestFilter PointOfInterestFilter { get; set; }
	public virtual CoreGraphics.CGSize Size { get; set; }
	public virtual UIKit.UITraitCollection TraitCollection { get; set; }
}

New Type: MapKit.MKLookAroundSnapshotter

public class MKLookAroundSnapshotter : Foundation.NSObject {
	// constructors
	protected MKLookAroundSnapshotter (Foundation.NSObjectFlag t);
	protected MKLookAroundSnapshotter (ObjCRuntime.NativeHandle handle);
	public MKLookAroundSnapshotter (MKLookAroundScene scene, MKLookAroundSnapshotOptions options);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual bool IsLoading { get; }
	// methods
	public virtual void Cancel ();
	public virtual void GetSnapshot (System.Action<MKLookAroundSnapshot,Foundation.NSError> completionHandler);
	public virtual System.Threading.Tasks.Task<MKLookAroundSnapshot> GetSnapshotAsync ();
}

New Type: MapKit.MKLookAroundViewController

public class MKLookAroundViewController : UIKit.UIViewController, Foundation.INSCoding, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public MKLookAroundViewController ();
	public MKLookAroundViewController (Foundation.NSCoder coder);
	protected MKLookAroundViewController (Foundation.NSObjectFlag t);
	public MKLookAroundViewController (MKLookAroundScene scene);
	protected MKLookAroundViewController (ObjCRuntime.NativeHandle handle);
	public MKLookAroundViewController (string nibName, Foundation.NSBundle nibBundle);
	// properties
	public virtual MKLookAroundBadgePosition BadgePosition { get; set; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public IMKLookAroundViewControllerDelegate Delegate { get; set; }
	public virtual bool NavigationEnabled { get; set; }
	public virtual MKPointOfInterestFilter PointOfInterestFilter { get; set; }
	public virtual MKLookAroundScene Scene { get; set; }
	public virtual bool ShowsRoadLabels { get; set; }
	public virtual Foundation.NSObject WeakDelegate { get; set; }
	// methods
	protected override void Dispose (bool disposing);
	public virtual void EncodeTo (Foundation.NSCoder encoder);
}

New Type: MapKit.MKLookAroundViewControllerDelegate

public class MKLookAroundViewControllerDelegate : Foundation.NSObject, IMKLookAroundViewControllerDelegate, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public MKLookAroundViewControllerDelegate ();
	protected MKLookAroundViewControllerDelegate (Foundation.NSObjectFlag t);
	protected MKLookAroundViewControllerDelegate (ObjCRuntime.NativeHandle handle);
	// methods
	public virtual void DidDismissFullScreen (MKLookAroundViewController viewController);
	public virtual void DidPresentFullScreen (MKLookAroundViewController viewController);
	public virtual void DidUpdateScene (MKLookAroundViewController viewController);
	public virtual void WillDismissFullScreen (MKLookAroundViewController viewController);
	public virtual void WillPresentFullScreen (MKLookAroundViewController viewController);
	public virtual void WillUpdateScene (MKLookAroundViewController viewController);
}

New Type: MapKit.MKLookAroundViewControllerDelegate_Extensions

public static class MKLookAroundViewControllerDelegate_Extensions {
	// methods
	public static void DidDismissFullScreen (this IMKLookAroundViewControllerDelegate This, MKLookAroundViewController viewController);
	public static void DidPresentFullScreen (this IMKLookAroundViewControllerDelegate This, MKLookAroundViewController viewController);
	public static void DidUpdateScene (this IMKLookAroundViewControllerDelegate This, MKLookAroundViewController viewController);
	public static void WillDismissFullScreen (this IMKLookAroundViewControllerDelegate This, MKLookAroundViewController viewController);
	public static void WillPresentFullScreen (this IMKLookAroundViewControllerDelegate This, MKLookAroundViewController viewController);
	public static void WillUpdateScene (this IMKLookAroundViewControllerDelegate This, MKLookAroundViewController viewController);
}

New Type: MapKit.MKMapConfiguration

public class MKMapConfiguration : Foundation.NSObject, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public MKMapConfiguration (Foundation.NSCoder coder);
	protected MKMapConfiguration (Foundation.NSObjectFlag t);
	protected MKMapConfiguration (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual MKMapElevationStyle ElevationStyle { get; set; }
	// methods
	public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
	public virtual void EncodeTo (Foundation.NSCoder encoder);
}

New Type: MapKit.MKMapElevationStyle

[Serializable]
public enum MKMapElevationStyle {
	Flat = 0,
	Realistic = 1,
}

New Type: MapKit.MKMapFeatureAnnotation

public class MKMapFeatureAnnotation : Foundation.NSObject, IMKAnnotation, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	protected MKMapFeatureAnnotation (Foundation.NSObjectFlag t);
	protected MKMapFeatureAnnotation (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual CoreLocation.CLLocationCoordinate2D Coordinate { get; }
	public virtual MKMapFeatureType FeatureType { get; }
	public virtual MKIconStyle IconStyle { get; }
	public virtual MKPointOfInterestCategory PointOfInterestCategory { get; }
	public virtual string Subtitle { get; }
	public virtual string Title { get; }
	// methods
	public virtual void SetCoordinate (CoreLocation.CLLocationCoordinate2D value);
}

New Type: MapKit.MKMapFeatureOptions

[Serializable]
[Flags]
public enum MKMapFeatureOptions {
	PhysicalFeatures = 4,
	PointsOfInterest = 1,
	Territories = 2,
}

New Type: MapKit.MKMapFeatureType

[Serializable]
public enum MKMapFeatureType {
	PhysicalFeature = 2,
	PointOfInterest = 0,
	Territory = 1,
}

New Type: MapKit.MKMapItemRequest

public class MKMapItemRequest : Foundation.NSObject {
	// constructors
	protected MKMapItemRequest (Foundation.NSObjectFlag t);
	public MKMapItemRequest (MKMapFeatureAnnotation mapFeatureAnnotation);
	protected MKMapItemRequest (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual MKMapFeatureAnnotation FeatureAnnotation { get; }
	public virtual bool IsCancelled { get; }
	public virtual bool IsLoading { get; }
	// methods
	public virtual void Cancel ();
	public virtual void GetMapItem (System.Action<MKMapItem,Foundation.NSError> completionHandler);
	public virtual System.Threading.Tasks.Task<MKMapItem> GetMapItemAsync ();
}

New Type: MapKit.MKStandardMapConfiguration

public class MKStandardMapConfiguration : MapKit.MKMapConfiguration {
	// constructors
	public MKStandardMapConfiguration ();
	public MKStandardMapConfiguration (Foundation.NSCoder coder);
	protected MKStandardMapConfiguration (Foundation.NSObjectFlag t);
	public MKStandardMapConfiguration (MKMapElevationStyle elevationStyle);
	public MKStandardMapConfiguration (MKStandardMapEmphasisStyle emphasisStyle);
	protected MKStandardMapConfiguration (ObjCRuntime.NativeHandle handle);
	public MKStandardMapConfiguration (MKMapElevationStyle elevationStyle, MKStandardMapEmphasisStyle emphasisStyle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual MKStandardMapEmphasisStyle EmphasisStyle { get; set; }
	public virtual MKPointOfInterestFilter PointOfInterestFilter { get; set; }
	public virtual bool ShowsTraffic { get; set; }
}

New Type: MapKit.MKStandardMapEmphasisStyle

[Serializable]
public enum MKStandardMapEmphasisStyle {
	Default = 0,
	Muted = 1,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment