Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created March 30, 2023 20:48
Show Gist options
  • Save vs-mobiletools-engineering-service2/dcdeb3d51a055506117624385d0ca704 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/dcdeb3d51a055506117624385d0ca704 to your computer and use it in GitHub Desktop.
previous-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.2.0.0 -> 16.4.0.0

Namespace AVRouting

Type Changed: AVRouting.AVCustomRoutingController

Added property:

public virtual AVCustomRoutingPartialIP[] KnownRouteIPs { get; set; }

New Type: AVRouting.AVCustomRoutingPartialIP

public class AVCustomRoutingPartialIP : Foundation.NSObject {
	// constructors
	protected AVCustomRoutingPartialIP (Foundation.NSObjectFlag t);
	protected AVCustomRoutingPartialIP (ObjCRuntime.NativeHandle handle);
	public AVCustomRoutingPartialIP (Foundation.NSData address, Foundation.NSData mask);
	// properties
	public virtual Foundation.NSData Address { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual Foundation.NSData Mask { get; }
}

Namespace AuthenticationServices

Type Changed: AuthenticationServices.ASAuthorizationPlatformPublicKeyCredentialAssertionRequest

Obsoleted properties:

 [Obsolete ("Starting with ios16.4 This API has been removed from the framework.")]
 public virtual IASAuthorizationPublicKeyCredentialDescriptor[] AllowedCredentials { get; set; }
 [Obsolete ("Starting with ios16.4 This API has been removed from the framework.")]
 public virtual Foundation.NSData Challenge { get; set; }
 [Obsolete ("Starting with ios16.4 This API has been removed from the framework.")]
 public ASAuthorizationPlatformPublicKeyCredentialDescriptor[] PlatformAllowedCredentials { get; set; }
 [Obsolete ("Starting with ios16.4 This API has been removed from the framework.")]
 public virtual string RelyingPartyIdentifier { get; set; }
 [Obsolete ("Starting with ios16.4 This API has been removed from the framework.")]
 public virtual Foundation.NSString UserVerificationPreference { get; set; }

Obsoleted methods:

 [Obsolete ("Starting with ios16.4 This API has been removed from the framework.")]
 public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
 [Obsolete ("Starting with ios16.4 This API has been removed from the framework.")]
 public virtual void EncodeTo (Foundation.NSCoder encoder);

Namespace CarPlay

Type Changed: CarPlay.CPInformationTemplate

Added interfaces:

ICPBarButtonProviding
ObjCRuntime.INativeObject
System.IDisposable

Added properties:

public virtual CPBarButton BackButton { get; set; }
public virtual CPBarButton[] LeadingNavigationBarButtons { get; set; }
public virtual CPBarButton[] TrailingNavigationBarButtons { get; set; }

Namespace CoreLocation

Type Changed: CoreLocation.CLLocationPushServiceError

Added value:

UnsupportedPlatform = 4,

Namespace FileProvider

Type Changed: FileProvider.NSFileProviderDomain

Added property:

public virtual Foundation.NSUuid VolumeUuid { get; }

Namespace Foundation

Type Changed: Foundation.NSUrl

Added properties:

public static NSString FileIdentifierKey { get; }
public static NSString VolumeMountFromLocationKey { get; }
public static NSString VolumeSubtypeKey { get; }
public static NSString VolumeTypeNameKey { get; }

Namespace HealthKit

Type Changed: HealthKit.HKClinicalTypeIdentifier

Added value:

ClinicalNoteRecord = 8,

Type Changed: HealthKit.HKContactsPrescription

Added interfaces:

Foundation.INSCoding
Foundation.INSCopying
Foundation.INSSecureCoding
ObjCRuntime.INativeObject
System.IDisposable

Added methods:

public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
public virtual void EncodeTo (Foundation.NSCoder encoder);

Type Changed: HealthKit.HKFhirResourceType

Added values:

DiagnosticReport = 10,
DocumentReference = 11,

Type Changed: HealthKit.HKGlassesPrescription

Added interfaces:

Foundation.INSCoding
Foundation.INSCopying
Foundation.INSSecureCoding
ObjCRuntime.INativeObject
System.IDisposable

Added methods:

public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
public virtual void EncodeTo (Foundation.NSCoder encoder);

Type Changed: HealthKit.HKMetadataKey

Added property:

public static Foundation.NSString HeadphoneGain { get; }

Type Changed: HealthKit.HKVisionPrescription

Added interfaces:

Foundation.INSCoding
Foundation.INSCopying
Foundation.INSSecureCoding
ObjCRuntime.INativeObject
System.IDisposable

Added methods:

public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
public virtual void EncodeTo (Foundation.NSCoder encoder);

Type Changed: HealthKit.HKWorkoutActivity

Added constructor:

public HKWorkoutActivity (Foundation.NSCoder coder);

Added interfaces:

Foundation.INSCoding
Foundation.INSCopying
Foundation.INSSecureCoding
ObjCRuntime.INativeObject
System.IDisposable

Added methods:

public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
public virtual void EncodeTo (Foundation.NSCoder encoder);

Namespace HomeKit

Type Changed: HomeKit.HMTimerTrigger

Added constructor:

public HMTimerTrigger (string name, Foundation.NSDate fireDate, Foundation.NSDateComponents recurrence);

Namespace ImageIO

Type Changed: ImageIO.CGImageProperties

Added property:

public static Foundation.NSString OpenExrCompression { get; }

Namespace Intents

Type Changed: Intents.INAnswerCallIntent

Added properties:

public virtual INCallAudioRoute AudioRoute { get; }
public virtual string CallIdentifier { get; }

Type Changed: Intents.INHangUpCallIntent

Added property:

public virtual string CallIdentifier { get; }

Namespace JavaScriptCore

Type Changed: JavaScriptCore.JSContext

Added property:

public virtual bool Inspectable { get; set; }

Namespace MediaAccessibility

New Type: MediaAccessibility.MAVideoAccommodations

public static class MAVideoAccommodations {
	// properties
	public static Foundation.NSString DimFlashingLightsChangedNotification { get; }
	// methods
	public static bool IsDimFlashingLightsEnabled ();

	// inner types
	public static class Notifications {
		// methods
		public static Foundation.NSObject ObserveDimFlashingLightsChanged (System.EventHandler<Foundation.NSNotificationEventArgs> handler);
		public static Foundation.NSObject ObserveDimFlashingLightsChanged (Foundation.NSObject objectToObserve, System.EventHandler<Foundation.NSNotificationEventArgs> handler);
	}
}

Namespace Network

Type Changed: Network.NWQuicStreamType

Added value:

Datagram = 3,

Namespace NetworkExtension

Type Changed: NetworkExtension.NEAppPushProvider

Added method:

public virtual void ReportPushToTalkMessage (Foundation.NSDictionary userInfo);

Type Changed: NetworkExtension.NEVpnProtocol

Added properties:

public virtual bool ExcludeApns { get; set; }
public virtual bool ExcludeCellularServices { get; set; }

Namespace ObjCRuntime

Type Changed: ObjCRuntime.Constants

Modified fields:

-public const string SdkVersion = "16.2";
+public const string SdkVersion = "16.4";
-public const string Version = "16.1.1";
+public const string Version = "16.5.0";

Namespace PassKit

Type Changed: PassKit.PKAddPassesViewController

Added constructor:

public PKAddPassesViewController (Foundation.NSData issuerData, Foundation.NSData signature, out Foundation.NSError error);

Type Changed: PassKit.PKPaymentNetwork

Added property:

public static Foundation.NSString PKPaymentNetworkPostFinance { get; }

Type Changed: PassKit.PKPaymentRequest

Added property:

public virtual PKDeferredPaymentRequest DeferredPaymentRequest { get; set; }

Type Changed: PassKit.PKPaymentRequestUpdate

Added property:

public virtual PKDeferredPaymentRequest DeferredPaymentRequest { get; set; }

New Type: PassKit.PKDeferredPaymentRequest

public class PKDeferredPaymentRequest : Foundation.NSObject {
	// constructors
	protected PKDeferredPaymentRequest (Foundation.NSObjectFlag t);
	protected PKDeferredPaymentRequest (ObjCRuntime.NativeHandle handle);
	public PKDeferredPaymentRequest (string paymentDescription, PKDeferredPaymentSummaryItem deferredBilling, Foundation.NSUrl managementUrl);
	// properties
	public virtual string BillingAgreement { get; set; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual PKDeferredPaymentSummaryItem DeferredBilling { get; set; }
	public virtual Foundation.NSDate FreeCancellationDate { get; set; }
	public virtual Foundation.NSTimeZone FreeCancellationDateTimeZone { get; set; }
	public virtual Foundation.NSUrl ManagementUrl { get; set; }
	public virtual string PaymentDescription { get; set; }
	public virtual Foundation.NSUrl TokenNotificationUrl { get; set; }
}

Namespace PdfKit

Type Changed: PdfKit.PdfDocumentWriteOptions

Added properties:

public bool? BurnInAnnotations { get; set; }
public bool? OptimizeImagesForScreen { get; set; }
public bool? SaveImagesAsJpeg { get; set; }
public bool? SaveTextFromOcr { get; set; }

Namespace PencilKit

Type Changed: PencilKit.PKEraserTool

Added constructor:

public PKEraserTool (PKEraserType eraserType, System.Runtime.InteropServices.NFloat width);

Added property:

public virtual System.Runtime.InteropServices.NFloat Width { get; }

Added methods:

public static System.Runtime.InteropServices.NFloat GetDefaultWidth (PKEraserType eraserType);
public static System.Runtime.InteropServices.NFloat GetMaximumWidth (PKEraserType eraserType);
public static System.Runtime.InteropServices.NFloat GetMinimumWidth (PKEraserType eraserType);

Type Changed: PencilKit.PKEraserType

Added value:

FixedWidthBitmap = 2,

Namespace SensorKit

Type Changed: SensorKit.SRApplicationUsage

Added properties:

public virtual double RelativeStartTime { get; }
public virtual SRSupplementalCategory[] SupplementalCategories { get; }

Type Changed: SensorKit.SRDeviceUsageReport

Added property:

public virtual string Version { get; }

Type Changed: SensorKit.SRKeyboardMetrics

Added properties:

public virtual SensorKit.SRKeyboardProbabilityMetric<Foundation.NSUnitDuration>[] LongWordTouchUpDown { get; }
public virtual string[] SessionIdentifiers { get; }
public virtual SensorKit.SRKeyboardProbabilityMetric<Foundation.NSUnitDuration> TouchUpDown { get; }

Type Changed: SensorKit.SRSensor

Added value:

MediaEvents = 13,

Type Changed: SensorKit.SRTextInputSession

Added property:

public virtual string SessionIdentifier { get; }

Type Changed: SensorKit.SRWristDetection

Added properties:

public virtual Foundation.NSDate OffWristDate { get; }
public virtual Foundation.NSDate OnWristDate { get; }

New Type: SensorKit.SRMediaEvent

public class SRMediaEvent : Foundation.NSObject, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public SRMediaEvent ();
	public SRMediaEvent (Foundation.NSCoder coder);
	protected SRMediaEvent (Foundation.NSObjectFlag t);
	protected SRMediaEvent (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual SRMediaEventType EventType { get; }
	public virtual string MediaIdentifier { get; }
	// methods
	public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
	public virtual void EncodeTo (Foundation.NSCoder encoder);
}

New Type: SensorKit.SRMediaEventType

[Serializable]
public enum SRMediaEventType {
	OffScreen = 2,
	OnScreen = 1,
}

New Type: SensorKit.SRSupplementalCategory

public class SRSupplementalCategory : Foundation.NSObject, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public SRSupplementalCategory (Foundation.NSCoder coder);
	protected SRSupplementalCategory (Foundation.NSObjectFlag t);
	protected SRSupplementalCategory (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual SRDeviceUsageCategory Identifier { get; }
	// methods
	public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
	public virtual void EncodeTo (Foundation.NSCoder encoder);
}

Namespace ThreadNetwork

Type Changed: ThreadNetwork.THClient

Added methods:

public virtual void IsPreferredNetworkAvailable (System.Action<bool> completion);
public virtual System.Threading.Tasks.Task<bool> IsPreferredNetworkAvailableAsync ();
public virtual void RetrieveAllActiveCredentials (System.Action<Foundation.NSSet<THCredentials>> completion);
public virtual System.Threading.Tasks.Task<Foundation.NSSet<THCredentials>> RetrieveAllActiveCredentialsAsync ();

Namespace UIKit

Type Changed: UIKit.UIActivityItemsConfigurationInteraction

Added value:

Copy = 1,

Type Changed: UIKit.UIActivityType

Added property:

public static Foundation.NSString AddToHomeScreen { get; }

Type Changed: UIKit.UIButtonConfiguration

Added properties:

public virtual UILineBreakMode SubtitleLineBreakMode { get; set; }
public virtual UILineBreakMode TitleLineBreakMode { get; set; }

Type Changed: UIKit.UIHoverGestureRecognizer

Added property:

public virtual System.Runtime.InteropServices.NFloat AltitudeAngle { get; }

Added methods:

public virtual System.Runtime.InteropServices.NFloat GetAzimuthAngle (UIView view);
public virtual CoreGraphics.CGVector GetAzimuthUnitVector (UIView view);

Type Changed: UIKit.UISearchBar

Added property:

public virtual bool Enabled { get; set; }

New Type: UIKit.UITextInputContext

public class UITextInputContext : Foundation.NSObject {
	// constructors
	protected UITextInputContext (Foundation.NSObjectFlag t);
	protected UITextInputContext (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public static UITextInputContext Current { get; }
	public virtual bool DictationInputExpected { get; set; }
	public virtual bool HardwareKeyboardInputExpected { get; set; }
	public virtual bool PencilInputExpected { get; set; }
}

Namespace VideoSubscriberAccount

Type Changed: VideoSubscriberAccount.VSUserAccount

Obsoleted properties:

 [Obsolete ("Starting with ios16.4 This API has been removed from the framework.")]
 public virtual bool Deleted { get; set; }

Added property:

public virtual bool SignedOut { get; set; }

Namespace WebKit

Type Changed: WebKit.WKPreferences

Added property:

public virtual bool ShouldPrintBackgrounds { get; set; }

Type Changed: WebKit.WKUIDelegate

Added methods:

public virtual void WillDismissEditMenu (WKWebView webView, UIKit.IUIEditMenuInteractionAnimating animator);
public virtual void WillPresentEditMenu (WKWebView webView, UIKit.IUIEditMenuInteractionAnimating animator);

Type Changed: WebKit.WKUIDelegate_Extensions

Added methods:

public static void WillDismissEditMenu (this IWKUIDelegate This, WKWebView webView, UIKit.IUIEditMenuInteractionAnimating animator);
public static void WillPresentEditMenu (this IWKUIDelegate This, WKWebView webView, UIKit.IUIEditMenuInteractionAnimating animator);

Type Changed: WebKit.WKWebView

Added property:

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