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/d626637a5b88b88498b8d99e7b7f785f to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/d626637a5b88b88498b8d99e7b7f785f to your computer and use it in GitHub Desktop.
previous-api-comparison/diff/dotnet/Microsoft.macOS.Ref/ref/net6.0/Microsoft.macOS.md

API diff: Microsoft.macOS.dll

Microsoft.macOS.dll

Assembly Version Changed: 13.1.0.0 -> 13.3.0.0

Namespace AppKit

Type Changed: AppKit.NSDocument

Added property:

public virtual INSPreviewRepresentableActivityItem[] PreviewRepresentableActivityItems { get; set; }

Type Changed: AppKit.NSWindow

Added property:

public virtual bool HasActiveWindowSharingSession { get; }

Added methods:

public virtual void TransferWindowSharing (NSWindow window, System.Action<Foundation.NSError> completionHandler);
public virtual System.Threading.Tasks.Task TransferWindowSharingAsync (NSWindow window);

Type Changed: AppKit.NSWindowController

Added property:

public virtual INSPreviewRepresentableActivityItem[] PreviewRepresentableActivityItems { get; set; }

Type Changed: AppKit.NSWindowDelegate

Added method:

public virtual INSPreviewRepresentableActivityItem[] GetPreviewRepresentableActivityItems (NSWindow window);

Type Changed: AppKit.NSWindowDelegate_Extensions

Added method:

public static INSPreviewRepresentableActivityItem[] GetPreviewRepresentableActivityItems (this INSWindowDelegate This, NSWindow window);

Namespace AuthenticationServices

New Type: AuthenticationServices.ASAuthorizationWebBrowserPlatformPublicKeyCredential

public class ASAuthorizationWebBrowserPlatformPublicKeyCredential : Foundation.NSObject {
	// constructors
	protected ASAuthorizationWebBrowserPlatformPublicKeyCredential (Foundation.NSObjectFlag t);
	protected ASAuthorizationWebBrowserPlatformPublicKeyCredential (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual Foundation.NSData CredentialId { get; }
	public virtual string Name { get; }
	public virtual string RelyingParty { get; }
	public virtual Foundation.NSData UserHandle { get; }
}

New Type: AuthenticationServices.ASAuthorizationWebBrowserPublicKeyCredentialManager

public class ASAuthorizationWebBrowserPublicKeyCredentialManager : Foundation.NSObject {
	// constructors
	public ASAuthorizationWebBrowserPublicKeyCredentialManager ();
	protected ASAuthorizationWebBrowserPublicKeyCredentialManager (Foundation.NSObjectFlag t);
	protected ASAuthorizationWebBrowserPublicKeyCredentialManager (ObjCRuntime.NativeHandle handle);
	// properties
	public virtual ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState AuthorizationStateForPlatformCredentials { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	// methods
	public virtual void GetPlatformCredentials (string relyingParty, System.Action<ASAuthorizationWebBrowserPlatformPublicKeyCredential[]> completionHandler);
	public virtual System.Threading.Tasks.Task<ASAuthorizationWebBrowserPlatformPublicKeyCredential[]> GetPlatformCredentialsAsync (string relyingParty);
	public virtual void RequestAuthorization (System.Action<ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState> completionHandler);
	public virtual System.Threading.Tasks.Task<ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState> RequestAuthorizationAsync ();
}

New Type: AuthenticationServices.ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState

[Serializable]
public enum ASAuthorizationWebBrowserPublicKeyCredentialManagerAuthorizationState {
	Authorized = 0,
	Denied = 1,
	NotDetermined = 2,
}

New Type: AuthenticationServices.IASAuthorizationWebBrowserExternallyAuthenticatableRequest

public interface IASAuthorizationWebBrowserExternallyAuthenticatableRequest : ObjCRuntime.INativeObject, System.IDisposable {
	// properties
	public virtual LocalAuthentication.LAContext AuthenticatedContext { get; set; }
}

Namespace CoreAnimation

Type Changed: CoreAnimation.CAEdrMetadata

Added constructor:

public CAEdrMetadata (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 CoreWlan

Type Changed: CoreWlan.CWChannelBand

Added value:

SixGHz = 3,

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

Added property:

public virtual INCallRecord[] CallRecords { get; set; }

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.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 = "13.1";
+public const string SdkVersion = "13.3";
-public const string Version = "9.0.0";
+public const string Version = "9.4.0";

Namespace PassKit

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 QuickLookUI

Type Changed: QuickLookUI.QLPreviewPanelDelegate

Added method:

public virtual AppKit.INSPreviewRepresentableActivityItem[] GetPreviewRepresentableActivityItems (AppKit.NSWindow window);

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 VideoSubscriberAccount

Type Changed: VideoSubscriberAccount.VSUserAccount

Obsoleted properties:

 [Obsolete ("Starting with macos13.3 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.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