Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vs-mobiletools-engineering-service2/fa83fe54cba368782676d50865c5aa9d to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/fa83fe54cba368782676d50865c5aa9d to your computer and use it in GitHub Desktop.
stable-api-comparison/diff/dotnet/Microsoft.MacCatalyst.Ref/ref/net7.0/Microsoft.MacCatalyst.md

API diff: Microsoft.MacCatalyst.dll

Microsoft.MacCatalyst.dll

Assembly Version Changed: 16.1.0.0 -> 16.2.0.0

Namespace AVFoundation

Type Changed: AVFoundation.AVAssetWriter

Obsoleted properties:

 [Obsolete ("Use the 'Inputs' property instead.")]
 public virtual AVAssetWriterInput[] inputs { get; }

Added property:

public virtual AVAssetWriterInput[] Inputs { get; }

Type Changed: AVFoundation.AVCaptureDeviceFormat

Obsoleted properties:

 [Obsolete ("Use the 'IsVideoHdrSupported' property instead.")]
 public virtual bool videoHDRSupportedVideoHDREnabled { get; }

Added properties:

public virtual bool IsVideoHdrSupported { get; }
public virtual System.Runtime.InteropServices.NFloat[] SecondaryNativeResolutionZoomFactors { get; }
public virtual CoreMedia.CMVideoDimensions[] SupportedMaxPhotoDimensions { get; }
public virtual System.Runtime.InteropServices.NFloat[] SupportedVideoZoomFactorsForDepthDataDelivery { get; }

Type Changed: AVFoundation.AVCapturePhotoOutput

Added properties:

public virtual CoreMedia.CMVideoDimensions MaxPhotoDimensions { get; set; }
public virtual bool PreservesLivePhotoCaptureSuspendedOnSessionStop { get; set; }

Type Changed: AVFoundation.AVCapturePhotoSettings

Added property:

public virtual CoreMedia.CMVideoDimensions MaxPhotoDimensions { get; set; }

Namespace BackgroundAssets

Type Changed: BackgroundAssets.BAAppExtensionInfo

Obsoleted properties:

 [Obsolete ("This property has been removed. It will always return string.Empty.")]
 public virtual string ApplicationIdentifier { get; }
 [Obsolete ("This property has been removed. It will always return string.Empty.")]
 public virtual Foundation.NSDate LastApplicationLaunchTime { get; }
 [Obsolete ("This property has been removed. It will always return string.Empty.")]
 public virtual Foundation.NSDate LastPeriodicCheckTime { get; }

Type Changed: BackgroundAssets.BADownload

Obsoleted properties:

 [Obsolete ("This property has been removed. It will always return string.Empty.")]
 public virtual Foundation.NSError Error { get; }

Type Changed: BackgroundAssets.BADownloadManager

Obsoleted methods:

 [Obsolete ("This property has been removed. It will always return string.Empty.")]
 public virtual void PerformWithExclusiveControl (Foundation.NSDate date, System.Action<System.Boolean,Foundation.NSError> performHandler);

Namespace CoreAnimation

Type Changed: CoreAnimation.CAEdrMetadata

Added property:

public static bool Available { get; }

Type Changed: CoreAnimation.CAMetalLayer

Added properties:

public virtual Foundation.NSDictionary DeveloperHudProperties { get; set; }
public virtual bool WantsExtendedDynamicRangeContent { get; set; }

Namespace CoreData

Type Changed: CoreData.NSPersistentStoreCoordinator

Obsoleted properties:

 [Obsolete ("Use 'UbiquitousContainerIdentifierKey' instead.")]
 public static Foundation.NSString eUbiquitousContainerIdentifierKey { get; }

Namespace CoreFoundation

Type Changed: CoreFoundation.CFSocket

Added properties:

public System.Net.IPEndPoint Address { get; }
public System.Net.IPEndPoint RemoteAddress { get; }

Added method:

public void Invalidate ();

Namespace CoreGraphics

Type Changed: CoreGraphics.CGEvent

Obsoleted methods:

 [Obsolete ("The location parameter is not used. Consider using the overload without the location parameter.")]
 public static CoreFoundation.CFMachPort CreateTap (IntPtr processSerialNumber, CGEventTapLocation location, CGEventTapPlacement place, CGEventTapOptions options, CGEventMask mask, CGEvent.CGEventTapCallback cback, IntPtr data);

Added method:

public static CoreFoundation.CFMachPort CreateTap (IntPtr processSerialNumber, CGEventTapPlacement place, CGEventTapOptions options, CGEventMask mask, CGEvent.CGEventTapCallback cback, IntPtr data);

Type Changed: CoreGraphics.CGImagePropertiesGps

Added properties:

public string LatitudeRef { get; set; }
public string LongitudeRef { get; set; }

Namespace CoreSpotlight

Type Changed: CoreSpotlight.CSSearchQueryContext

Obsoleted properties:

 [Obsolete ("This property was removed. The getter always returns null and the setter throws and InvalidOperationException.")]
 public virtual string[] ProtectionClasses { get; set; }

Namespace Foundation

Type Changed: Foundation.NSAttributedString

Obsoleted methods:

 [Obsolete ("Use 'GetData' instead.")]
 public NSData GetDataFromRange (NSRange range, NSAttributedStringDocumentAttributes documentAttributes, ref NSError error);
 [Obsolete ("Use 'GetData' instead.")]
 public virtual NSData GetDataFromRange (NSRange range, NSDictionary attributes, ref NSError error);
 [Obsolete ("Use 'GetFileWrapper' instead.")]
 public NSFileWrapper GetFileWrapperFromRange (NSRange range, NSAttributedStringDocumentAttributes documentAttributes, ref NSError error);
 [Obsolete ("Use 'GetFileWrapper' instead.")]
 public virtual NSFileWrapper GetFileWrapperFromRange (NSRange range, NSDictionary attributes, ref NSError error);

Added methods:

public NSData GetData (NSRange range, NSAttributedStringDocumentAttributes options, out NSError error);
public NSData GetData (NSRange range, NSDictionary options, out NSError error);
public NSFileWrapper GetFileWrapper (NSRange range, NSAttributedStringDocumentAttributes options, out NSError error);
public NSFileWrapper GetFileWrapper (NSRange range, NSDictionary options, out NSError error);

Type Changed: Foundation.NSBundle

Obsoleted properties:

 [Obsolete ("Use the 'AllBundles' property instead.")]
 public static NSBundle[] _AllBundles { get; }

Added property:

public static NSBundle[] AllBundles { get; }

Type Changed: Foundation.NSKeyValueObservingOptions

Added value:

None = 0,

Type Changed: Foundation.NSOperatingSystemVersion

Added constructors:

public NSOperatingSystemVersion (IntPtr major);
public NSOperatingSystemVersion (IntPtr major, IntPtr minor);

Added interfaces:

System.IComparable
System.IEquatable<NSOperatingSystemVersion>

Added methods:

public int CompareTo (NSOperatingSystemVersion otherVersion);
public virtual int CompareTo (object obj);
public virtual bool Equals (NSOperatingSystemVersion other);
public override bool Equals (object obj);
public override int GetHashCode ();
public static bool op_Equality (NSOperatingSystemVersion os1, NSOperatingSystemVersion os2);
public static bool op_Inequality (NSOperatingSystemVersion os1, NSOperatingSystemVersion os2);

Type Changed: Foundation.NSTask

Added property:

public virtual NSQualityOfService QualityOfService { get; set; }

Type Changed: Foundation.NSValue

Added property:

public virtual CoreMedia.CMVideoDimensions CMVideoDimensionsValue { get; }

Added method:

public static NSValue FromCMVideoDimensions (CoreMedia.CMVideoDimensions value);

Namespace GameKit

Type Changed: GameKit.GKMatchmaker

Added methods:

public virtual void StartGroupActivity (System.Action<GKPlayer> handler);
public virtual void StopGroupActivity ();

Namespace Intents

Type Changed: Intents.INIntentIdentifier

Added values:

AnswerCall = 26,
HangUpCall = 27,

New Type: Intents.IINAnswerCallIntentHandling

public interface IINAnswerCallIntentHandling : ObjCRuntime.INativeObject, System.IDisposable {
	// methods
	public virtual void HandleAnswerCall (INAnswerCallIntent intent, System.Action<INAnswerCallIntentResponse> completion);
}

New Type: Intents.IINHangUpCallIntentHandling

public interface IINHangUpCallIntentHandling : ObjCRuntime.INativeObject, System.IDisposable {
	// methods
	public virtual void HandleHangUpCall (INHangUpCallIntent intent, System.Action<INHangUpCallIntentResponse> completion);
}

New Type: Intents.INAnswerCallIntent

public class INAnswerCallIntent : Intents.INIntent {
	// constructors
	public INAnswerCallIntent ();
	public INAnswerCallIntent (Foundation.NSCoder coder);
	protected INAnswerCallIntent (Foundation.NSObjectFlag t);
	protected INAnswerCallIntent (ObjCRuntime.NativeHandle handle);
	public INAnswerCallIntent (INCallAudioRoute audioRoute, string callIdentifier);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
}

New Type: Intents.INAnswerCallIntentHandling_Extensions

public static class INAnswerCallIntentHandling_Extensions {
	// methods
	public static void ConfirmAnswerCall (this IINAnswerCallIntentHandling This, INAnswerCallIntent intent, System.Action<INAnswerCallIntentResponse> completion);
}

New Type: Intents.INAnswerCallIntentResponse

public class INAnswerCallIntentResponse : Intents.INIntentResponse {
	// constructors
	public INAnswerCallIntentResponse (Foundation.NSCoder coder);
	protected INAnswerCallIntentResponse (Foundation.NSObjectFlag t);
	protected INAnswerCallIntentResponse (ObjCRuntime.NativeHandle handle);
	public INAnswerCallIntentResponse (INAnswerCallIntentResponseCode code, Foundation.NSUserActivity userActivity);
	// properties
	public virtual INCallRecord[] CallRecords { get; set; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual INAnswerCallIntentResponseCode Code { get; }
}

New Type: Intents.INAnswerCallIntentResponseCode

[Serializable]
public enum INAnswerCallIntentResponseCode {
	ContinueInApp = 2,
	Failure = 5,
	FailureRequiringAppLaunch = 6,
	InProgress = 3,
	Ready = 1,
	Success = 4,
	Unspecified = 0,
}

New Type: Intents.INHangUpCallIntent

public class INHangUpCallIntent : Intents.INIntent {
	// constructors
	public INHangUpCallIntent ();
	public INHangUpCallIntent (Foundation.NSCoder coder);
	protected INHangUpCallIntent (Foundation.NSObjectFlag t);
	protected INHangUpCallIntent (ObjCRuntime.NativeHandle handle);
	public INHangUpCallIntent (string callIdentifier);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
}

New Type: Intents.INHangUpCallIntentHandling_Extensions

public static class INHangUpCallIntentHandling_Extensions {
	// methods
	public static void ConfirmHangUpCall (this IINHangUpCallIntentHandling This, INHangUpCallIntent intent, System.Action<INHangUpCallIntentResponse> completion);
}

New Type: Intents.INHangUpCallIntentResponse

public class INHangUpCallIntentResponse : Intents.INIntentResponse {
	// constructors
	public INHangUpCallIntentResponse (Foundation.NSCoder coder);
	protected INHangUpCallIntentResponse (Foundation.NSObjectFlag t);
	protected INHangUpCallIntentResponse (ObjCRuntime.NativeHandle handle);
	public INHangUpCallIntentResponse (INHangUpCallIntentResponseCode code, Foundation.NSUserActivity userActivity);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual INHangUpCallIntentResponseCode Code { get; }
}

New Type: Intents.INHangUpCallIntentResponseCode

[Serializable]
public enum INHangUpCallIntentResponseCode {
	Failure = 4,
	FailureNoCallToHangUp = 6,
	FailureRequiringAppLaunch = 5,
	InProgress = 2,
	Ready = 1,
	Success = 3,
	Unspecified = 0,
}

Namespace MapKit

Type Changed: MapKit.MKOverlayRenderer

Added method:

public static System.Runtime.InteropServices.NFloat MKRoadWidthAtZoomScale (System.Runtime.InteropServices.NFloat zoomScale);

Type Changed: MapKit.MKReverseGeocoder

Obsoleted properties:

 [Obsolete ("Use the 'Coordinate' property instead.")]
 public virtual CoreLocation.CLLocationCoordinate2D coordinate { get; }

Added property:

public virtual CoreLocation.CLLocationCoordinate2D Coordinate { get; }

Namespace Metal

Type Changed: Metal.IMTLRenderCommandEncoder_Extensions

Added methods:

public static void SetScissorRects (this IMTLRenderCommandEncoder This, MTLScissorRect[] scissorRects);
public static void SetViewports (this IMTLRenderCommandEncoder This, MTLViewport[] viewports);

Namespace MetalKit

Type Changed: MetalKit.MTKTextureLoaderOptions

Modified properties:

-public bool? GenerateMipmaps { get; set; }
+public bool? GenerateMipmaps { get; }

Namespace NearbyInteraction

Type Changed: NearbyInteraction.NISession

Obsoleted methods:

 [Obsolete ("This method was removed and will always throw a InvalidOperationException.")]
 public virtual void SetARSession (Foundation.NSObject session);

Namespace Network

Type Changed: Network.NWDataTransferReport

Obsoleted methods:

 [Obsolete ("Use the 'GetPathRadioType' property instead.")]
 public NWInterfaceRadioType get_path_radio_type (uint pathIndex);

Added method:

public NWInterfaceRadioType GetPathRadioType (uint pathIndex);

Namespace ObjCRuntime

Type Changed: ObjCRuntime.BlockLiteral

Added constructors:

public BlockLiteral (void* trampoline, object context, System.Reflection.MethodInfo trampolineMethod);
public BlockLiteral (void* trampoline, object context, string trampolineSignature);
public BlockLiteral (void* trampoline, object context, System.Type trampolineType, string trampolineMethod);

Added interface:

System.IDisposable

Added property:

public object Context { get; }

Added method:

public virtual void Dispose ();

Type Changed: ObjCRuntime.Constants

Modified fields:

-public const string SdkVersion = "16.1";
+public const string SdkVersion = "16.2";
-public const string Version = "16.1.1";
+public const string Version = "16.2.1";

Namespace Photos

Type Changed: Photos.PHFetchResult

Obsoleted properties:

 [Obsolete ("Use the 'FirstObject' property instead.")]
 public virtual Foundation.NSObject firstObject { get; }

Added property:

public virtual Foundation.NSObject FirstObject { get; }

Namespace Security

Type Changed: Security.SslContext

Obsoleted methods:

 [Obsolete ("'SetSessionStrengthPolicy' is not available anymore.")]
 public SslStatus SetSessionStrengthPolicy (SslSessionStrengthPolicy policyStrength);

Namespace StoreKit

Type Changed: StoreKit.StoreProductParameters

Modified properties:

-public string AdNetworkSourceAppStoreIdentifier { get; set; }
+public string AdNetworkSourceAppStoreIdentifier { get; }
-public string AdNetworkVersion { get; set; }
+public string AdNetworkVersion { get; }
-public string ProductIdentifier { get; set; }
+public string ProductIdentifier { get; }
-public string ProviderToken { get; set; }
+public string ProviderToken { get; }

Namespace System.Net.Http

Type Changed: System.Net.Http.NSUrlSessionHandler

Obsoleted properties:

 [Obsolete ("This property will be ignored in .NET 8.")]
 public bool BypassBackgroundSessionCheck { get; set; }

Namespace UIKit

Type Changed: UIKit.NSTextList

Added constructors:

public NSTextList (string format);
public NSTextList (NSTextListMarkerFormats format);
public NSTextList (string format, NSTextListOptions mask);

Added property:

public string CustomMarkerFormat { get; }

Type Changed: UIKit.NSTextListMarkerFormats

Added value:

CustomString = -1,

Type Changed: UIKit.NSTextListOptions

Added value:

None = 0,

Type Changed: UIKit.UICalendarViewDelegate

Added method:

public virtual void DidChangeVisibleDateComponents (UICalendarView calendarView, Foundation.NSDateComponents previousDateComponents);

Type Changed: UIKit.UIConfigurationColorTransformer

Obsoleted properties:

 [Obsolete ("Use the 'MonochromeTint' property instead.")]
 public static IntPtr _MonochromeTint { get; }
 [Obsolete ("Use the 'PreferredTint' property instead.")]
 public static IntPtr _PreferredTint { get; }

Type Changed: UIKit.UIFont

Obsoleted properties:

 [Obsolete ("Use the 'XHeight' property instead.")]
 public virtual System.Runtime.InteropServices.NFloat xHeight { get; }

Added property:

public virtual System.Runtime.InteropServices.NFloat XHeight { get; }

New Type: UIKit.UICalendarViewDelegate_Extensions

public static class UICalendarViewDelegate_Extensions {
	// methods
	public static void DidChangeVisibleDateComponents (this IUICalendarViewDelegate This, UICalendarView calendarView, Foundation.NSDateComponents previousDateComponents);
}

New Type: UIKit.UIFontWeightConstants

public static class UIFontWeightConstants {
	// properties
	public static System.Runtime.InteropServices.NFloat Black { get; }
	public static System.Runtime.InteropServices.NFloat Bold { get; }
	public static System.Runtime.InteropServices.NFloat Heavy { get; }
	public static System.Runtime.InteropServices.NFloat Light { get; }
	public static System.Runtime.InteropServices.NFloat Medium { get; }
	public static System.Runtime.InteropServices.NFloat Regular { get; }
	public static System.Runtime.InteropServices.NFloat Semibold { get; }
	public static System.Runtime.InteropServices.NFloat Thin { get; }
	public static System.Runtime.InteropServices.NFloat UltraLight { get; }
}

New Type: UIKit.UIFontWeightExtensions

public static class UIFontWeightExtensions {
	// methods
	public static System.Runtime.InteropServices.NFloat GetWeight (this UIFontWeight weight);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment