Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created October 4, 2022 19:14
Show Gist options
  • Save vs-mobiletools-engineering-service2/75ecc5ab080b2fb12d05be64ae718204 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/75ecc5ab080b2fb12d05be64ae718204 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 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 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