Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created January 19, 2023 11:43
Show Gist options
  • Save vs-mobiletools-engineering-service2/5ab29cec51737e212a11ecaf61e1807b to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/5ab29cec51737e212a11ecaf61e1807b to your computer and use it in GitHub Desktop.
stable-api-comparison/diff/dotnet/Microsoft.macOS.Ref/ref/net7.0/Microsoft.macOS.md

API diff: Microsoft.macOS.dll

Microsoft.macOS.dll

Assembly Version Changed: 13.0.0.0 -> 13.1.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; }

Namespace AppKit

Type Changed: AppKit.NSKey

Added values:

F17 = 64,
RightCommand = 54,

Type Changed: AppKit.NSTextList

Added constructors:

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

Added property:

public string CustomMarkerFormat { get; }

Type Changed: AppKit.NSTextListMarkerFormats

Added value:

CustomString = -1,

Type Changed: AppKit.NSTextListOptions

Added value:

None = 0,

Type Changed: AppKit.NSWindow

Added constructor:

public NSWindow (IntPtr windowRef);

Obsoleted fields:

 [Obsolete ("Set 'TrackReleasedWhenClosed' and call 'ReleaseWhenClosed()' instead.")]
 public static bool DisableReleasedWhenClosedInConstructor;

Obsoleted properties:

 [Obsolete ("Call 'ReleaseWhenClosed ()' instead.")]
 public virtual bool ReleasedWhenClosed { get; set; }

Added properties:

public bool DangerousReleasedWhenClosed { get; set; }
public static bool TrackReleasedWhenClosed { get; set; }

Added method:

public void ReleaseWhenClosed (bool value);

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 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.CGColorSpaceNames

Obsoleted properties:

 [Obsolete ("Now accessible as AdobeRgb1998.")]
 public static Foundation.NSString AdobeRGB1998 { get; }
 [Obsolete ("Now accessible as GenericCmyk.")]
 public static Foundation.NSString GenericCMYK { get; }
 [Obsolete ("Now accessible as GenericRgb.")]
 public static Foundation.NSString GenericRGB { get; }
 [Obsolete ("Now accessible as GenericRgb.")]
 public static Foundation.NSString GenericRGBLinear { get; }
 [Obsolete ("Now accessible as Srgb.")]
 public static Foundation.NSString SRGB { get; }

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

Added constructors:

public NSAttributedString (NSData data, out NSError error);
public NSAttributedString (NSUrl url, out NSError error);
public NSAttributedString (NSData data, NSAttributedStringDocumentAttributes documentAttributes, out NSError error);
public NSAttributedString (NSUrl url, NSAttributedStringDocumentAttributes documentAttributes, out NSError error);

Type Changed: Foundation.NSAttributedStringDocumentAttributes

Added properties:

public AppKit.NSColor BackgroundColor { get; set; }
public float? DefaultTabInterval { get; set; }
public float? HyphenationFactor { get; set; }
public CoreGraphics.CGSize? PaperSize { get; set; }
public bool? ReadOnly { get; set; }
public NSDocumentViewMode? ViewMode { get; set; }
public CoreGraphics.CGSize? ViewSize { get; set; }
public float? ViewZoom { get; set; }

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.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 properties:

public virtual NSUrl CurrentDirectoryUrl { get; set; }
public virtual NSUrl ExecutableUrl { get; set; }
public virtual NSQualityOfService QualityOfService { get; set; }
public virtual System.Action<NSTask> TerminationHandler { get; set; }

Added methods:

public virtual bool Launch (out NSError error);
public static NSTask LaunchFromUrl (NSUrl url, string[] arguments, out NSError error, System.Action<NSTask> terminationHandler);

Type Changed: Foundation.NSUrlSessionHandler

Obsoleted properties:

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

New Type: Foundation.NSDocumentViewMode

[Serializable]
public enum NSDocumentViewMode {
	Normal = 0,
	PageLayout = 1,
}

Namespace GameKit

Type Changed: GameKit.GKMatchmaker

Added methods:

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

Namespace ImageKit

Type Changed: ImageKit.IKImageEditPanel

Obsoleted properties:

 [Obsolete ("Use the 'FilterArray' property instead.")]
 public virtual Foundation.NSArray filterArray { get; }

Added property:

public virtual Foundation.NSArray FilterArray { get; }

Type Changed: ImageKit.IKSlideshow

Obsoleted properties:

 [Obsolete ("Use the 'AutoPlayDelay' property instead.")]
 public virtual double autoPlayDelay { get; set; }

Added property:

public virtual double AutoPlayDelay { get; set; }

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 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);

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.Constants

Modified fields:

-public const string SdkVersion = "13.0";
+public const string SdkVersion = "13.1";
-public const string Version = "9.0.0";
+public const string Version = "9.1.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 ScreenCaptureKit

Type Changed: ScreenCaptureKit.SCStreamFrameInfoKeys

Added property:

public static Foundation.NSString ScreenRect { get; }

Type Changed: ScreenCaptureKit.SCWindow

Added property:

public virtual bool Active { get; }

Namespace SharedWithYou

Type Changed: SharedWithYou.SWCollaborationView

Added property:

public virtual AppKit.NSMenuItem MenuFormRepresentation { get; }

Namespace StoreKit

Type Changed: StoreKit.StoreProductParameters

Modified properties:

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

Namespace WebKit

Type Changed: WebKit.DomDocument

Obsoleted properties:

 [Obsolete ("Use the 'Anchors' property instead.")]
 public virtual DomHtmlCollection anchors { get; }
 [Obsolete ("Use the 'Applets' property instead.")]
 public virtual DomHtmlCollection applets { get; }
 [Obsolete ("Use the 'Body' property instead.")]
 public virtual DomHtmlElement body { get; set; }
 [Obsolete ("Use the 'Forms' property instead.")]
 public virtual DomHtmlCollection forms { get; }
 [Obsolete ("Use the 'Images' property instead.")]
 public virtual DomHtmlCollection images { get; }
 [Obsolete ("Use the 'Links' property instead.")]
 public virtual DomHtmlCollection links { get; }

Added properties:

public virtual DomHtmlCollection Anchors { get; }
public virtual DomHtmlCollection Applets { get; }
public virtual DomHtmlElement Body { get; set; }
public virtual DomHtmlCollection Forms { get; }
public virtual DomHtmlCollection Images { get; }
public virtual DomHtmlCollection Links { get; }

Type Changed: WebKit.DomHtmlInputElement

Obsoleted properties:

 [Obsolete ("Use the 'DefaultChecked' property instead.")]
 public virtual bool defaultChecked { get; set; }

Added property:

public virtual bool DefaultChecked { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment