Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created May 18, 2023 14:59
Show Gist options
  • Save vs-mobiletools-engineering-service2/9344fba2011473c3f40cf768e546ea23 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/9344fba2011473c3f40cf768e546ea23 to your computer and use it in GitHub Desktop.
stable-api-comparison/diff/dotnet/Microsoft.iOS.Ref/ref/net7.0/Microsoft.iOS.md

API diff: Microsoft.iOS.dll

Microsoft.iOS.dll

Assembly Version Changed: 16.1.0.0 -> 16.4.0.0

Namespace AVFoundation

Type Changed: AVFoundation.AVAssetWriter

Obsoleted properties:

 [Obsolete ("Use the 'Inputs' property instead.")]
 public virtual AVAssetWriterInput[] inputs { get; }

Added property:

public virtual AVAssetWriterInput[] Inputs { get; }

Type Changed: AVFoundation.AVAudioSession

Obsoleted properties:

 [Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
 public static Foundation.NSString CategoryAmbient { get; }
 [Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
 public static Foundation.NSString CategoryAudioProcessing { get; }
 [Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
 public static Foundation.NSString CategoryMultiRoute { get; }
 [Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
 public static Foundation.NSString CategoryPlayAndRecord { get; }
 [Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
 public static Foundation.NSString CategoryPlayback { get; }
 [Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
 public static Foundation.NSString CategoryRecord { get; }
 [Obsolete ("Use 'AVAudioSessionCategory' enum values instead.")]
 public static Foundation.NSString CategorySoloAmbient { get; }
 [Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
 public static Foundation.NSString ModeDefault { get; }
 [Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
 public static Foundation.NSString ModeGameChat { get; }
 [Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
 public static Foundation.NSString ModeMeasurement { get; }
 [Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
 public static Foundation.NSString ModeMoviePlayback { get; }
 [Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
 public static Foundation.NSString ModeSpokenAudio { get; }
 [Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
 public static Foundation.NSString ModeVideoChat { get; }
 [Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
 public static Foundation.NSString ModeVideoRecording { get; }
 [Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
 public static Foundation.NSString ModeVoiceChat { get; }
 [Obsolete ("Use 'AVAudioSessionMode' enum values instead.")]
 public static Foundation.NSString VoicePrompt { get; }

Added methods:

public bool SetCategory (AVAudioSessionCategory category, AVAudioSessionCategoryOptions options, out Foundation.NSError outError);
public Foundation.NSError SetCategory (AVAudioSessionCategory category, AVAudioSessionMode mode, AVAudioSessionCategoryOptions options);
public Foundation.NSError SetCategory (AVAudioSessionCategory category, string mode, AVAudioSessionCategoryOptions options);
public bool SetCategory (AVAudioSessionCategory category, AVAudioSessionMode mode, AVAudioSessionCategoryOptions options, out Foundation.NSError outError);
public bool SetCategory (AVAudioSessionCategory category, string mode, AVAudioSessionCategoryOptions options, out Foundation.NSError outError);
public bool SetCategory (AVAudioSessionCategory category, AVAudioSessionMode mode, AVAudioSessionRouteSharingPolicy policy, AVAudioSessionCategoryOptions options, out Foundation.NSError outError);
public bool SetCategory (AVAudioSessionCategory category, string mode, AVAudioSessionRouteSharingPolicy policy, AVAudioSessionCategoryOptions options, out Foundation.NSError outError);
public bool SetMode (AVAudioSessionMode mode, out Foundation.NSError error);

Type Changed: AVFoundation.AVAudioSinkNode

Obsoleted constructors:

 [Obsolete ("Use the overload that takes a delegate that does not take a 'ref AudioBuffers' instead. Assigning a value to the 'inputData' parameter in the callback has no effect.")]
 public AVAudioSinkNode (AVAudioSinkNodeReceiverHandler receiverHandler);

Added constructors:

public AVAudioSinkNode (AVAudioSinkNodeReceiverHandler2 receiverHandler);
public AVAudioSinkNode (AVAudioSinkNodeReceiverHandlerRaw receiverHandler);

Type Changed: AVFoundation.AVCaptureDeviceFormat

Obsoleted properties:

 [Obsolete ("Use the 'IsVideoHdrSupported' property instead.")]
 public virtual bool videoHDRSupportedVideoHDREnabled { get; }

Added properties:

public virtual bool IsVideoHdrSupported { get; }
public virtual System.Runtime.InteropServices.NFloat[] SecondaryNativeResolutionZoomFactors { get; }
public virtual CoreMedia.CMVideoDimensions[] SupportedMaxPhotoDimensions { get; }
public virtual System.Runtime.InteropServices.NFloat[] SupportedVideoZoomFactorsForDepthDataDelivery { get; }

Type Changed: AVFoundation.AVCapturePhotoOutput

Added properties:

public virtual CoreMedia.CMVideoDimensions MaxPhotoDimensions { get; set; }
public virtual bool PreservesLivePhotoCaptureSuspendedOnSessionStop { get; set; }

Type Changed: AVFoundation.AVCapturePhotoSettings

Added property:

public virtual CoreMedia.CMVideoDimensions MaxPhotoDimensions { get; set; }

Type Changed: AVFoundation.AVCaptureSession

Added properties:

public virtual float HardwareCost { get; }
public virtual bool MultitaskingCameraAccessEnabled { get; set; }
public virtual bool MultitaskingCameraAccessSupported { get; }

New Type: AVFoundation.AVAudioSessionCategoryExtensions

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

New Type: AVFoundation.AVAudioSessionMode

[Serializable]
public enum AVAudioSessionMode {
	Default = 0,
	GameChat = 4,
	Measurement = 3,
	MoviePlayback = 5,
	SpokenAudio = 7,
	VideoChat = 6,
	VideoRecording = 2,
	VoiceChat = 1,
	VoicePrompt = 8,
}

New Type: AVFoundation.AVAudioSessionModeExtensions

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

New Type: AVFoundation.AVAudioSinkNodeReceiverHandler2

public sealed delegate AVAudioSinkNodeReceiverHandler2 : System.MulticastDelegate {
	// constructors
	public AVAudioSinkNodeReceiverHandler2 (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (AudioToolbox.AudioTimeStamp timestamp, uint frameCount, AudioToolbox.AudioBuffers inputData, System.AsyncCallback callback, object object);
	public virtual int EndInvoke (System.IAsyncResult result);
	public virtual int Invoke (AudioToolbox.AudioTimeStamp timestamp, uint frameCount, AudioToolbox.AudioBuffers inputData);
}

New Type: AVFoundation.AVAudioSinkNodeReceiverHandlerRaw

public sealed delegate AVAudioSinkNodeReceiverHandlerRaw : System.MulticastDelegate {
	// constructors
	public AVAudioSinkNodeReceiverHandlerRaw (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (IntPtr timestamp, uint frameCount, IntPtr inputData, System.AsyncCallback callback, object object);
	public virtual int EndInvoke (System.IAsyncResult result);
	public virtual int Invoke (IntPtr timestamp, uint frameCount, IntPtr inputData);
}

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 BackgroundAssets

Type Changed: BackgroundAssets.BAAppExtensionInfo

Obsoleted properties:

 [Obsolete ("This property has been removed. It will always return string.Empty.")]
 public virtual string ApplicationIdentifier { get; }
 [Obsolete ("This property has been removed. It will always return string.Empty.")]
 public virtual Foundation.NSDate LastApplicationLaunchTime { get; }
 [Obsolete ("This property has been removed. It will always return string.Empty.")]
 public virtual Foundation.NSDate LastPeriodicCheckTime { get; }

Added property:

public virtual Foundation.NSNumber RestrictedEssentialDownloadSizeRemaining { get; }

Type Changed: BackgroundAssets.BADownload

Obsoleted properties:

 [Obsolete ("This property has been removed. It will always return string.Empty.")]
 public virtual Foundation.NSError Error { get; }

Added property:

public virtual bool IsEssential { get; }

Added method:

public virtual BADownload CopyAsNonEssential ();

Type Changed: BackgroundAssets.BADownloadManager

Obsoleted methods:

 [Obsolete ("This property has been removed. It will always return string.Empty.")]
 public virtual void PerformWithExclusiveControl (Foundation.NSDate date, System.Action<System.Boolean,Foundation.NSError> performHandler);

Added method:

public virtual BADownload[] FetchCurrentDownloads (out Foundation.NSError error);

Type Changed: BackgroundAssets.BAUrlDownload

Added constructors:

public BAUrlDownload (string identifier, Foundation.NSUrlRequest request, UIntPtr fileSize, string applicationGroupIdentifier);
public BAUrlDownload (string identifier, Foundation.NSUrlRequest request, bool essential, UIntPtr fileSize, string applicationGroupIdentifier, IntPtr priority);

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 CoreAnimation

Type Changed: CoreAnimation.CAMetalLayer

Added properties:

public virtual Foundation.NSDictionary DeveloperHudProperties { get; set; }
public virtual CAEdrMetadata EdrMetadata { get; set; }
public virtual bool WantsExtendedDynamicRangeContent { get; set; }

New Type: CoreAnimation.CAEdrMetadata

public class CAEdrMetadata : Foundation.NSObject, Foundation.INSCoding, Foundation.INSCopying, Foundation.INSSecureCoding, ObjCRuntime.INativeObject, System.IDisposable {
	// constructors
	public CAEdrMetadata (Foundation.NSCoder coder);
	protected CAEdrMetadata (Foundation.NSObjectFlag t);
	protected CAEdrMetadata (ObjCRuntime.NativeHandle handle);
	// properties
	public static bool Available { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public static CAEdrMetadata HlgMetadata { get; }
	// methods
	public virtual Foundation.NSObject Copy (Foundation.NSZone zone);
	public virtual void EncodeTo (Foundation.NSCoder encoder);
	public static CAEdrMetadata GetHdr10Metadata (Foundation.NSData displayData, Foundation.NSData contentData, float scale);
	public static CAEdrMetadata GetHdr10Metadata (float minNits, float maxNits, float scale);
}

Namespace CoreData

Type Changed: CoreData.NSPersistentStoreCoordinator

Obsoleted properties:

 [Obsolete ("Use 'UbiquitousContainerIdentifierKey' instead.")]
 public static Foundation.NSString eUbiquitousContainerIdentifierKey { get; }

Namespace CoreFoundation

Type Changed: CoreFoundation.CFSocket

Added properties:

public System.Net.IPEndPoint Address { get; }
public System.Net.IPEndPoint RemoteAddress { get; }

Added method:

public void Invalidate ();

Namespace CoreGraphics

Type Changed: CoreGraphics.CGImagePropertiesGps

Added properties:

public string LatitudeRef { get; set; }
public string LongitudeRef { get; set; }

Namespace CoreLocation

Type Changed: CoreLocation.CLLocationPushServiceError

Added value:

UnsupportedPlatform = 4,

Namespace CoreSpotlight

Type Changed: CoreSpotlight.CSSearchQueryContext

Obsoleted properties:

 [Obsolete ("This property was removed. The getter always returns null and the setter throws and InvalidOperationException.")]
 public virtual string[] ProtectionClasses { get; set; }

Namespace FileProvider

Type Changed: FileProvider.NSFileProviderDomain

Added property:

public virtual Foundation.NSUuid VolumeUuid { get; }

Namespace Foundation

Type Changed: Foundation.NSAttributedString

Obsoleted methods:

 [Obsolete ("Use 'GetData' instead.")]
 public NSData GetDataFromRange (NSRange range, NSAttributedStringDocumentAttributes documentAttributes, ref NSError error);
 [Obsolete ("Use 'GetData' instead.")]
 public virtual NSData GetDataFromRange (NSRange range, NSDictionary attributes, ref NSError error);
 [Obsolete ("Use 'GetFileWrapper' instead.")]
 public NSFileWrapper GetFileWrapperFromRange (NSRange range, NSAttributedStringDocumentAttributes documentAttributes, ref NSError error);
 [Obsolete ("Use 'GetFileWrapper' instead.")]
 public virtual NSFileWrapper GetFileWrapperFromRange (NSRange range, NSDictionary attributes, ref NSError error);

Added methods:

public NSData GetData (NSRange range, NSAttributedStringDocumentAttributes options, out NSError error);
public NSData GetData (NSRange range, NSDictionary options, out NSError error);
public NSFileWrapper GetFileWrapper (NSRange range, NSAttributedStringDocumentAttributes options, out NSError error);
public NSFileWrapper GetFileWrapper (NSRange range, NSDictionary options, out NSError error);

Type Changed: Foundation.NSBundle

Obsoleted properties:

 [Obsolete ("Use the 'AllBundles' property instead.")]
 public static NSBundle[] _AllBundles { get; }

Added property:

public static NSBundle[] AllBundles { get; }

Type Changed: Foundation.NSKeyValueObservingOptions

Added value:

None = 0,

Type Changed: Foundation.NSOperatingSystemVersion

Added constructors:

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

Added properties:

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

Added methods:

public static NSUrl CreateFileUrl (string path);
public static NSUrl CreateFileUrl (string path, bool isDir);

Type Changed: Foundation.NSValue

Added property:

public virtual CoreMedia.CMVideoDimensions CMVideoDimensionsValue { get; }

Added method:

public static NSValue FromCMVideoDimensions (CoreMedia.CMVideoDimensions value);

Namespace GameKit

Type Changed: GameKit.GKMatchmaker

Added methods:

public virtual void StartGroupActivity (System.Action<GKPlayer> handler);
public virtual void StopGroupActivity ();

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.INIntentIdentifier

Added values:

AnswerCall = 26,
HangUpCall = 27,

New Type: Intents.IINAnswerCallIntentHandling

public interface IINAnswerCallIntentHandling : ObjCRuntime.INativeObject, System.IDisposable {
	// methods
	public virtual void HandleAnswerCall (INAnswerCallIntent intent, System.Action<INAnswerCallIntentResponse> completion);
}

New Type: Intents.IINHangUpCallIntentHandling

public interface IINHangUpCallIntentHandling : ObjCRuntime.INativeObject, System.IDisposable {
	// methods
	public virtual void HandleHangUpCall (INHangUpCallIntent intent, System.Action<INHangUpCallIntentResponse> completion);
}

New Type: Intents.INAnswerCallIntent

public class INAnswerCallIntent : Intents.INIntent {
	// constructors
	public INAnswerCallIntent ();
	public INAnswerCallIntent (Foundation.NSCoder coder);
	protected INAnswerCallIntent (Foundation.NSObjectFlag t);
	protected INAnswerCallIntent (ObjCRuntime.NativeHandle handle);
	public INAnswerCallIntent (INCallAudioRoute audioRoute, string callIdentifier);
	// properties
	public virtual INCallAudioRoute AudioRoute { get; }
	public virtual string CallIdentifier { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
}

New Type: Intents.INAnswerCallIntentHandling_Extensions

public static class INAnswerCallIntentHandling_Extensions {
	// methods
	public static void ConfirmAnswerCall (this IINAnswerCallIntentHandling This, INAnswerCallIntent intent, System.Action<INAnswerCallIntentResponse> completion);
}

New Type: Intents.INAnswerCallIntentResponse

public class INAnswerCallIntentResponse : Intents.INIntentResponse {
	// constructors
	public INAnswerCallIntentResponse (Foundation.NSCoder coder);
	protected INAnswerCallIntentResponse (Foundation.NSObjectFlag t);
	protected INAnswerCallIntentResponse (ObjCRuntime.NativeHandle handle);
	public INAnswerCallIntentResponse (INAnswerCallIntentResponseCode code, Foundation.NSUserActivity userActivity);
	// properties
	public virtual INCallRecord[] CallRecords { get; set; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual INAnswerCallIntentResponseCode Code { get; }
}

New Type: Intents.INAnswerCallIntentResponseCode

[Serializable]
public enum INAnswerCallIntentResponseCode {
	ContinueInApp = 2,
	Failure = 5,
	FailureRequiringAppLaunch = 6,
	InProgress = 3,
	Ready = 1,
	Success = 4,
	Unspecified = 0,
}

New Type: Intents.INHangUpCallIntent

public class INHangUpCallIntent : Intents.INIntent {
	// constructors
	public INHangUpCallIntent ();
	public INHangUpCallIntent (Foundation.NSCoder coder);
	protected INHangUpCallIntent (Foundation.NSObjectFlag t);
	protected INHangUpCallIntent (ObjCRuntime.NativeHandle handle);
	public INHangUpCallIntent (string callIdentifier);
	// properties
	public virtual string CallIdentifier { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
}

New Type: Intents.INHangUpCallIntentHandling_Extensions

public static class INHangUpCallIntentHandling_Extensions {
	// methods
	public static void ConfirmHangUpCall (this IINHangUpCallIntentHandling This, INHangUpCallIntent intent, System.Action<INHangUpCallIntentResponse> completion);
}

New Type: Intents.INHangUpCallIntentResponse

public class INHangUpCallIntentResponse : Intents.INIntentResponse {
	// constructors
	public INHangUpCallIntentResponse (Foundation.NSCoder coder);
	protected INHangUpCallIntentResponse (Foundation.NSObjectFlag t);
	protected INHangUpCallIntentResponse (ObjCRuntime.NativeHandle handle);
	public INHangUpCallIntentResponse (INHangUpCallIntentResponseCode code, Foundation.NSUserActivity userActivity);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual INHangUpCallIntentResponseCode Code { get; }
}

New Type: Intents.INHangUpCallIntentResponseCode

[Serializable]
public enum INHangUpCallIntentResponseCode {
	Failure = 4,
	FailureNoCallToHangUp = 6,
	FailureRequiringAppLaunch = 5,
	InProgress = 2,
	Ready = 1,
	Success = 3,
	Unspecified = 0,
}

Namespace JavaScriptCore

Type Changed: JavaScriptCore.JSContext

Added property:

public virtual bool Inspectable { get; set; }

Namespace MapKit

Type Changed: MapKit.MKOverlayRenderer

Added method:

public static System.Runtime.InteropServices.NFloat MKRoadWidthAtZoomScale (System.Runtime.InteropServices.NFloat zoomScale);

Type Changed: MapKit.MKReverseGeocoder

Obsoleted properties:

 [Obsolete ("Use the 'Coordinate' property instead.")]
 public virtual CoreLocation.CLLocationCoordinate2D coordinate { get; }

Added property:

public virtual CoreLocation.CLLocationCoordinate2D Coordinate { get; }

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 Metal

Type Changed: Metal.IMTLRenderCommandEncoder_Extensions

Added methods:

public static void SetScissorRects (this IMTLRenderCommandEncoder This, MTLScissorRect[] scissorRects);
public static void SetViewports (this IMTLRenderCommandEncoder This, MTLViewport[] viewports);

Namespace MetalKit

Type Changed: MetalKit.MTKTextureLoaderOptions

Modified properties:

-public bool? GenerateMipmaps { get; set; }
+public bool? GenerateMipmaps { get; }

Namespace Network

Type Changed: Network.NWDataTransferReport

Obsoleted methods:

 [Obsolete ("Use the 'GetPathRadioType' property instead.")]
 public NWInterfaceRadioType get_path_radio_type (uint pathIndex);

Added method:

public NWInterfaceRadioType GetPathRadioType (uint pathIndex);

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.BlockLiteral

Added constructors:

public BlockLiteral (void* trampoline, object context, System.Reflection.MethodInfo trampolineMethod);
public BlockLiteral (void* trampoline, object context, string trampolineSignature);
public BlockLiteral (void* trampoline, object context, System.Type trampolineType, string trampolineMethod);

Added interface:

System.IDisposable

Added property:

public object Context { get; }

Added method:

public virtual void Dispose ();

Type Changed: ObjCRuntime.Constants

Modified fields:

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

Type Changed: ObjCRuntime.Runtime

Added method:

public static Foundation.NSObject GetNSObject (NativeHandle ptr);

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 Photos

Type Changed: Photos.PHFetchResult

Obsoleted properties:

 [Obsolete ("Use the 'FirstObject' property instead.")]
 public virtual Foundation.NSObject firstObject { get; }

Added property:

public virtual Foundation.NSObject FirstObject { get; }

Namespace Security

Type Changed: Security.SslContext

Obsoleted methods:

 [Obsolete ("'SetSessionStrengthPolicy' is not available anymore.")]
 public SslStatus SetSessionStrengthPolicy (SslSessionStrengthPolicy policyStrength);

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 StoreKit

Type Changed: StoreKit.StoreProductParameters

Modified properties:

-public string AdNetworkSourceAppStoreIdentifier { get; set; }
+public string AdNetworkSourceAppStoreIdentifier { get; }
-public string AdNetworkVersion { get; set; }
+public string AdNetworkVersion { get; }
-public string ProductIdentifier { get; set; }
+public string ProductIdentifier { get; }
-public string ProviderToken { get; set; }
+public string ProviderToken { get; }

Namespace System.Net.Http

Type Changed: System.Net.Http.NSUrlSessionHandler

Obsoleted properties:

 [Obsolete ("This property will be ignored in .NET 8.")]
 public bool BypassBackgroundSessionCheck { get; set; }

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.NSTextList

Added constructors:

public NSTextList (string format);
public NSTextList (NSTextListMarkerFormats format);
public NSTextList (string format, NSTextListOptions mask);

Added property:

public string CustomMarkerFormat { get; }

Type Changed: UIKit.NSTextListMarkerFormats

Added value:

CustomString = -1,

Type Changed: UIKit.NSTextListOptions

Added value:

None = 0,

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.UICalendarViewDelegate

Added method:

public virtual void DidChangeVisibleDateComponents (UICalendarView calendarView, Foundation.NSDateComponents previousDateComponents);

Type Changed: UIKit.UIConfigurationColorTransformer

Obsoleted properties:

 [Obsolete ("Use the 'MonochromeTint' property instead.")]
 public static IntPtr _MonochromeTint { get; }
 [Obsolete ("Use the 'PreferredTint' property instead.")]
 public static IntPtr _PreferredTint { get; }

Type Changed: UIKit.UIFont

Obsoleted properties:

 [Obsolete ("Use the 'XHeight' property instead.")]
 public virtual System.Runtime.InteropServices.NFloat xHeight { get; }

Added property:

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

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.UICalendarViewDelegate_Extensions

public static class UICalendarViewDelegate_Extensions {
	// methods
	public static void DidChangeVisibleDateComponents (this IUICalendarViewDelegate This, UICalendarView calendarView, Foundation.NSDateComponents previousDateComponents);
}

New Type: UIKit.UIFontWeightConstants

public static class UIFontWeightConstants {
	// properties
	public static System.Runtime.InteropServices.NFloat Black { get; }
	public static System.Runtime.InteropServices.NFloat Bold { get; }
	public static System.Runtime.InteropServices.NFloat Heavy { get; }
	public static System.Runtime.InteropServices.NFloat Light { get; }
	public static System.Runtime.InteropServices.NFloat Medium { get; }
	public static System.Runtime.InteropServices.NFloat Regular { get; }
	public static System.Runtime.InteropServices.NFloat Semibold { get; }
	public static System.Runtime.InteropServices.NFloat Thin { get; }
	public static System.Runtime.InteropServices.NFloat UltraLight { get; }
}

New Type: UIKit.UIFontWeightExtensions

public static class UIFontWeightExtensions {
	// methods
	public static System.Runtime.InteropServices.NFloat GetWeight (this UIFontWeight weight);
}

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

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