Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created October 11, 2022 23:33
Show Gist options
  • Save vs-mobiletools-engineering-service2/651f4351a1c146160401d70e1afbaa05 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/651f4351a1c146160401d70e1afbaa05 to your computer and use it in GitHub Desktop.
stable-api-comparison/diff/dotnet/Microsoft.iOS.Ref/ref/net6.0/Microsoft.iOS.md

API diff: Microsoft.iOS.dll

Microsoft.iOS.dll

Assembly Version Changed: 16.0.0.0 -> 16.1.0.0

Namespace CoreLocation

Type Changed: CoreLocation.CLError

Added value:

HistoricalLocationError = 19,

Namespace CoreSpotlight

Type Changed: CoreSpotlight.CSSearchQueryContext

Removed property:

public virtual string[] ProtectionClasses { get; set; }

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

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 SdkVersion = "16.0";
+public const string SdkVersion = "16.1";
-public const string SharedWithYouLibrary = "/System/Library/Frameworks/SharedWithYouCore.framework/SharedWithYouCore";
+public const string SharedWithYouLibrary = "/System/Library/Frameworks/SharedWithYou.framework/SharedWithYou";
-public const string Version = "16.0.0";
+public const string Version = "16.1.0";

Added field:

public static const string BackgroundAssetsLibrary = "/System/Library/Frameworks/BackgroundAssets.framework/BackgroundAssets";

Namespace SharedWithYouCore

Type Changed: SharedWithYouCore.SWCollaborationMetadata

Added constructor:

public SWCollaborationMetadata (string identifier, SWIdentifierType identifierType);

New Type: SharedWithYouCore.SWIdentifierType

[Serializable]
public enum SWIdentifierType {
	Collaboration = 1,
	Local = 0,
}

Namespace StoreKit

Type Changed: StoreKit.SKAdImpression

Added property:

public virtual Foundation.NSNumber SourceIdentifier { get; set; }

Type Changed: StoreKit.SKAdNetwork

Added methods:

public static void UpdatePostback (nint conversionValue, SKAdNetworkCoarseConversionValue coarseValue, System.Action<Foundation.NSError> completion);
public static void UpdatePostback (nint conversionValue, SKAdNetworkCoarseConversionValue coarseValue, bool lockWindow, System.Action<Foundation.NSError> completion);
public static System.Threading.Tasks.Task UpdatePostbackAsync (nint conversionValue, SKAdNetworkCoarseConversionValue coarseValue);
public static System.Threading.Tasks.Task UpdatePostbackAsync (nint conversionValue, SKAdNetworkCoarseConversionValue coarseValue, bool lockWindow);

Type Changed: StoreKit.SKStoreProductParameterKey

Added property:

public static Foundation.NSString AdNetworkSourceIdentifier { get; }

New Type: StoreKit.SKAdNetworkCoarseConversionValue

[Serializable]
public enum SKAdNetworkCoarseConversionValue {
	High = 0,
	Low = 2,
	Medium = 1,
}

New Type: StoreKit.SKAdNetworkCoarseConversionValueExtensions

public static class SKAdNetworkCoarseConversionValueExtensions {
	// methods
	public static Foundation.NSString GetConstant (this SKAdNetworkCoarseConversionValue self);
	public static SKAdNetworkCoarseConversionValue GetValue (Foundation.NSString constant);
}

Namespace UIKit

Type Changed: UIKit.UIHoverGestureRecognizer

Added constructor:

public UIHoverGestureRecognizer (System.Action<UIHoverGestureRecognizer> action);

New Namespace BackgroundAssets

New Type: BackgroundAssets.BAAppExtensionInfo

public class BAAppExtensionInfo : Foundation.NSObject, Foundation.INSCoding, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public BAAppExtensionInfo (Foundation.NSCoder coder);
	protected BAAppExtensionInfo (Foundation.NSObjectFlag t);
	protected BAAppExtensionInfo (ObjCRuntime.NativeHandle handle);
	// properties
	public virtual string ApplicationIdentifier { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual Foundation.NSDate LastApplicationLaunchTime { get; }
	public virtual Foundation.NSDate LastPeriodicCheckTime { get; }
	// methods
	public virtual void EncodeTo (Foundation.NSCoder encoder);
}

New Type: BackgroundAssets.BADownload

public class BADownload : Foundation.NSObject, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public BADownload (Foundation.NSCoder coder);
	protected BADownload (Foundation.NSObjectFlag t);
	protected BADownload (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual Foundation.NSError Error { get; }
	public virtual string Identifier { get; }
	public virtual nint Priority { get; }
	public virtual BADownloadState State { get; }
	public virtual string UniqueIdentifier { get; }
	// methods
	public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
	public virtual void EncodeTo (Foundation.NSCoder encoder);
}

New Type: BackgroundAssets.BADownloadManager

public class BADownloadManager : Foundation.NSObject {
	// constructors
	protected BADownloadManager (Foundation.NSObjectFlag t);
	protected BADownloadManager (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public IBADownloadManagerDelegate Delegate { get; set; }
	public static BADownloadManager SharedManager { get; }
	public virtual Foundation.NSObject WeakDelegate { get; set; }
	// methods
	public virtual bool CancelDownload (BADownload download, out Foundation.NSError error);
	protected override void Dispose (bool disposing);
	public virtual void FetchCurrentDownloads (System.Action<Foundation.NSArray<BADownload>> completionHandler);
	public virtual System.Threading.Tasks.Task<Foundation.NSArray<BADownload>> FetchCurrentDownloadsAsync ();
	public virtual void PerformWithExclusiveControl (System.Action<Foundation.NSError> performHandler);
	public virtual void PerformWithExclusiveControl (Foundation.NSDate date, System.Action<System.Boolean,Foundation.NSError> performHandler);
	public virtual bool ScheduleDownload (BADownload download, out Foundation.NSError outError);
	public virtual bool StartForegroundDownload (BADownload download, out Foundation.NSError outError);
}

New Type: BackgroundAssets.BADownloadManagerDelegate

public class BADownloadManagerDelegate : Foundation.NSObject, IBADownloadManagerDelegate, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public BADownloadManagerDelegate ();
	protected BADownloadManagerDelegate (Foundation.NSObjectFlag t);
	protected BADownloadManagerDelegate (ObjCRuntime.NativeHandle handle);
	// methods
	public virtual void DidBegin (BADownload download);
	public virtual void DidPause (BADownload download);
	public virtual void DidReceiveChallenge (BADownload download, Foundation.NSUrlAuthenticationChallenge challenge, System.Action<Foundation.NSUrlSessionAuthChallengeDisposition,Foundation.NSUrlCredential> completionHandler);
	public virtual void DidWriteBytes (BADownload download, long bytesWritten, long totalBytesWritten, long totalExpectedBytes);
	public virtual void Failed (BADownload download, Foundation.NSError error);
	public virtual void Finished (BADownload download, Foundation.NSUrl fileUrl);
}

New Type: BackgroundAssets.BADownloadManagerDelegate_Extensions

public static class BADownloadManagerDelegate_Extensions {
	// methods
	public static void DidBegin (this IBADownloadManagerDelegate This, BADownload download);
	public static void DidPause (this IBADownloadManagerDelegate This, BADownload download);
	public static void DidReceiveChallenge (this IBADownloadManagerDelegate This, BADownload download, Foundation.NSUrlAuthenticationChallenge challenge, System.Action<Foundation.NSUrlSessionAuthChallengeDisposition,Foundation.NSUrlCredential> completionHandler);
	public static void DidWriteBytes (this IBADownloadManagerDelegate This, BADownload download, long bytesWritten, long totalBytesWritten, long totalExpectedBytes);
	public static void Failed (this IBADownloadManagerDelegate This, BADownload download, Foundation.NSError error);
	public static void Finished (this IBADownloadManagerDelegate This, BADownload download, Foundation.NSUrl fileUrl);
}

New Type: BackgroundAssets.BADownloadState

[Serializable]
public enum BADownloadState {
	Created = 0,
	Downloading = 2,
	Failed = -1,
	Finished = 3,
	Waiting = 1,
}

New Type: BackgroundAssets.BADownloaderExtension_Extensions

public static class BADownloaderExtension_Extensions {
	// methods
	public static void BackgroundDownloadDidFail (this IBADownloaderExtension This, BADownload failedDownload);
	public static void BackgroundDownloadDidFinish (this IBADownloaderExtension This, BADownload finishedDownload, Foundation.NSUrl fileUrl);
	public static void CheckForUpdates (this IBADownloaderExtension This, BAAppExtensionInfo metadata);
	public static void DidInstallWithMetadata (this IBADownloaderExtension This, BAAppExtensionInfo metadata);
	public static void DidUpdateWithMetadata (this IBADownloaderExtension This, BAAppExtensionInfo metadata);
	public static void ExtensionWillTerminate (this IBADownloaderExtension This);
	public static void ReceivedAuthenticationChallenge (this IBADownloaderExtension This, Foundation.NSUrlAuthenticationChallenge challenge, BADownload download, System.Action<Foundation.NSUrlSessionAuthChallengeDisposition,Foundation.NSUrlCredential> completionHandler);
}

New Type: BackgroundAssets.BAUrlDownload

public class BAUrlDownload : BackgroundAssets.BADownload {
	// constructors
	public BAUrlDownload (Foundation.NSCoder coder);
	protected BAUrlDownload (Foundation.NSObjectFlag t);
	protected BAUrlDownload (ObjCRuntime.NativeHandle handle);
	public BAUrlDownload (string identifier, Foundation.NSUrlRequest request, string applicationGroupIdentifier);
	public BAUrlDownload (string identifier, Foundation.NSUrlRequest request, string applicationGroupIdentifier, nint priority);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public static nint DefaultPriority { get; }
	public static nint MaxPriority { get; }
	public static nint MinPriority { get; }
}

New Type: BackgroundAssets.IBADownloadManagerDelegate

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

New Type: BackgroundAssets.IBADownloaderExtension

public interface IBADownloaderExtension : ObjCRuntime.INativeObject, System.IDisposable {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment