Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created May 16, 2024 16:14
Show Gist options
  • Save vs-mobiletools-engineering-service2/d96e3876bc0848f9c7d7d08ce8446f6c to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/d96e3876bc0848f9c7d7d08ce8446f6c to your computer and use it in GitHub Desktop.
stable-api-comparison/diff/dotnet/Microsoft.macOS.Ref/ref/net8.0/Microsoft.macOS.md

API diff: Microsoft.macOS.dll

Microsoft.macOS.dll

Assembly Version Changed: 14.0.0.0 -> 14.2.0.0

Namespace AppKit

Type Changed: AppKit.NSApplication

Added methods:

public virtual void ActivateContextHelpMode (Foundation.NSObject sender);
public virtual void RegisterUserInterfaceItemSearchHandler (INSUserInterfaceItemSearching handler);
public virtual bool SearchStringInUserInterface (string searchString, string stringToSearch, Foundation.NSRange searchRange, out Foundation.NSRange foundRange);
public virtual void ShowHelp (Foundation.NSObject sender);
public virtual void UnregisterUserInterfaceItemSearchHandler (INSUserInterfaceItemSearching handler);

Type Changed: AppKit.NSFontDescriptor

Added method:

public virtual NSFontDescriptor Create (Foundation.NSString design);

New Type: AppKit.INSUserInterfaceItemSearching

public interface INSUserInterfaceItemSearching : ObjCRuntime.INativeObject, System.IDisposable {
	// methods
	public abstract string[] GetLocalizedTitles (Foundation.NSObject forItem);
	public abstract void SearchForItems (string searchString, IntPtr resultLimit, System.Action<Foundation.NSObject[]> matchedItemHandler);
}

New Type: AppKit.NSUserInterfaceItemSearching_Extensions

public static class NSUserInterfaceItemSearching_Extensions {
	// methods
	public static void PerformAction (this INSUserInterfaceItemSearching This, Foundation.NSObject forItem);
	public static void ShowAllHelpTopics (this INSUserInterfaceItemSearching This, string searchString);
}

Namespace CloudKit

Type Changed: CloudKit.CKSyncEngineDidFetchChangesEvent

Added property:

public virtual CKSyncEngineFetchChangesContext Context { get; }

Type Changed: CloudKit.CKSyncEngineFetchChangesScope

Added method:

public virtual bool Contains (CKRecordZoneID zoneId);

Type Changed: CloudKit.CKSyncEngineWillFetchChangesEvent

Added property:

public virtual CKSyncEngineFetchChangesContext Context { get; }

Namespace CoreLocation

Type Changed: CoreLocation.CLMonitoringState

Added value:

Unmonitored = 3,

Namespace CoreVideo

Type Changed: CoreVideo.CVImageBuffer

Added properties:

public static Foundation.NSString LogTransferFunctionAppleLogKey { get; }
public static Foundation.NSString LogTransferFunctionKey { get; }

Namespace GameKit

Type Changed: GameKit.GKError

Added values:

ICloudUnavailable = 35,
LockdownMode = 36,

Type Changed: GameKit.GKMatch

Added properties:

public virtual Foundation.NSDictionary<GameKit.GKPlayer,Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>> PlayerProperties { get; }
public virtual Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> Properties { get; }

Type Changed: GameKit.GKMatchRequest

Added properties:

public virtual Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> Properties { get; set; }
public virtual string QueueName { get; set; }
public virtual Foundation.NSDictionary<GameKit.GKPlayer,Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>> RecipientProperties { get; set; }

Type Changed: GameKit.GKMatchmaker

Added methods:

public virtual void FindMatchedPlayers (GKMatchRequest request, System.Action<GKMatchedPlayers,Foundation.NSError> completionHandler);
public virtual System.Threading.Tasks.Task<GKMatchedPlayers> FindMatchedPlayersAsync (GKMatchRequest request);
public virtual void QueryQueueActivity (string queueName, System.Action<System.IntPtr,Foundation.NSError> completionHandler);
public virtual System.Threading.Tasks.Task<IntPtr> QueryQueueActivityAsync (string queueName);

Type Changed: GameKit.GKMatchmakerViewControllerDelegate

Added method:

public virtual void GetMatchProperties (GKMatchmakerViewController viewController, GKPlayer recipient, System.Action<Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>> completionHandler);

Type Changed: GameKit.GKMatchmakerViewControllerDelegate_Extensions

Added method:

public static void GetMatchProperties (this IGKMatchmakerViewControllerDelegate This, GKMatchmakerViewController viewController, GKPlayer recipient, System.Action<Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>> completionHandler);

New Type: GameKit.GKMatchedPlayers

public class GKMatchedPlayers : Foundation.NSObject {
	// constructors
	public GKMatchedPlayers ();
	protected GKMatchedPlayers (Foundation.NSObjectFlag t);
	protected GKMatchedPlayers (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual Foundation.NSDictionary<GameKit.GKPlayer,Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject>> PlayerProperties { get; }
	public virtual GKPlayer[] Players { get; }
	public virtual Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> Properties { get; }
}

Namespace ObjCRuntime

Type Changed: ObjCRuntime.Constants

Modified fields:

-public const string SdkVersion = "14.0";
+public const string SdkVersion = "14.2";
-public const string Version = "9.0.0";
+public const string Version = "9.2.0";

Namespace ScreenCaptureKit

Type Changed: ScreenCaptureKit.SCContentFilter

Added property:

public virtual bool IncludeMenuBar { get; set; }

Type Changed: ScreenCaptureKit.SCStreamConfiguration

Added property:

public virtual bool IncludeChildWindows { get; set; }

Type Changed: ScreenCaptureKit.SCStreamFrameInfoKeys

Added property:

public static Foundation.NSString PresenterOverlayContentRect { get; }

Namespace Speech

Type Changed: Speech.SFAnalysisContextTag

Obsoleted properties:

 [Obsolete ("This API has been removed from the framework.")]
 public static Foundation.NSString LeftContext { get; }
 [Obsolete ("This API has been removed from the framework.")]
 public static Foundation.NSString RightContext { get; }
 [Obsolete ("This API has been removed from the framework.")]
 public static Foundation.NSString SelectedText { get; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment