Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created October 27, 2022 12:04
Show Gist options
  • Select an option

  • Save vs-mobiletools-engineering-service2/3f4601576b3e4b2a0a18a1d33e4ae10d to your computer and use it in GitHub Desktop.

Select an option

Save vs-mobiletools-engineering-service2/3f4601576b3e4b2a0a18a1d33e4ae10d to your computer and use it in GitHub Desktop.
stable-api-comparison/mac-api-diff.md
title Xamarin.Mac SDK API diff: 8.12.0 vs 8.13.0
description List of API changes between Xamarin.Mac versions 8.12.0 and 8.13.0.
author spouliot
ms.author sepoulio
ms.date 10/27/2022
ms.topic article
ms.assetid a414b1d3-a0b8-fa34-35da-797f14bd8f85
ms.prod xamarin

Xamarin.Mac SDK API diff: 8.12.0 vs 8.13.0

Namespace AVFoundation

Type Changed: AVFoundation.AVAssetImageGenerator

Added method:

public void GenerateCGImagesAsynchronously (Foundation.NSValue[] cmTimesRequestedTimes, AVAssetImageGeneratorCompletionHandler2 handler);

New Type: AVFoundation.AVAssetImageGeneratorCompletionHandler2

public sealed delegate AVAssetImageGeneratorCompletionHandler2 : System.MulticastDelegate {
	// constructors
	public AVAssetImageGeneratorCompletionHandler2 (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (CoreMedia.CMTime requestedTime, CoreGraphics.CGImage imageRef, CoreMedia.CMTime actualTime, AVAssetImageGeneratorResult result, Foundation.NSError error, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (CoreMedia.CMTime requestedTime, CoreGraphics.CGImage imageRef, CoreMedia.CMTime actualTime, AVAssetImageGeneratorResult result, Foundation.NSError error);
}

Namespace Foundation

Type Changed: Foundation.NSArray

Added interfaces:

System.Collections.Generic.IEnumerable<NSObject>
System.Collections.IEnumerable

Added methods:

public TKey[] ToArray<TKey> ();
public NSObject[] ToArray ();

Type Changed: Foundation.NSArray`1

Added method:

public TKey[] ToArray ();

Type Changed: Foundation.NSOperatingSystemVersion

Added constructors:

public NSOperatingSystemVersion (nint major);
public NSOperatingSystemVersion (nint major, nint 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.NSProcessInfo

Added property:

public virtual bool LowPowerModeEnabled { get; }

Namespace Network

Type Changed: Network.NWPath

Obsoleted methods:

 [Obsolete ("Use the overload that takes a 'Func<NWEndpoint, bool>' instead.")]
 public void EnumerateGateways (System.Action<NWEndpoint> callback);
 [Obsolete ("Use the overload that takes a 'Func<NWInterface, bool>' instead.")]
 public void EnumerateInterfaces (System.Action<NWInterface> callback);

Added methods:

public void EnumerateGateways (System.Func<NWEndpoint,System.Boolean> callback);
public void EnumerateInterfaces (System.Func<NWInterface,System.Boolean> callback);

Namespace ObjCRuntime

Type Changed: ObjCRuntime.Constants

Modified fields:

-public const string Version = "8.12.0";
+public const string Version = "8.13.0";

Namespace UserNotifications

Type Changed: UserNotifications.UNNotificationInterruptionLevel

Obsoleted fields:

 [Obsolete ("Use 'Active2'.")]
 Active = 0,
 [Obsolete ("Use 'Critical2'.")]
 Critical = 1,
 [Obsolete ("Use 'Passive2'.")]
 Passive = 2,
 [Obsolete ("Use 'TimeSensitive2'.")]
 TimeSensitive = 3,

Added values:

Active2 = 1,
Critical2 = 3,
Passive2 = 0,
TimeSensitive2 = 2,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment