Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created September 6, 2022 20:08
Show Gist options
  • Save vs-mobiletools-engineering-service2/84c0f2572b5ec11f6c89e8aceb104eee to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/84c0f2572b5ec11f6c89e8aceb104eee to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
diff --git a/old/Constants.watchos.generated.cs b/new/Constants.watchos.generated.cs
index f651512..f295599 100644
--- a/old/Constants.watchos.generated.cs
+++ b/new/Constants.watchos.generated.cs
@@ -70,6 +70,7 @@ namespace ObjCRuntime {
// WatchOS 9.0
public const string CallKitLibrary = "/System/Library/Frameworks/CallKit.framework/CallKit";
public const string DeviceCheckLibrary = "/System/Library/Frameworks/DeviceCheck.framework/DeviceCheck";
+ public const string LocalAuthenticationLibrary = "/System/Library/Frameworks/LocalAuthentication.framework/LocalAuthentication";
}
}
diff --git a/old/dotnet/ios/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs
index 6d68704..d9458a9 100644
--- a/old/dotnet/ios/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs
@@ -51,6 +51,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[Native]
public enum LAAccessControlOperation : long {
@@ -60,10 +61,12 @@ namespace LocalAuthentication {
UseKeySign = 3,
[SupportedOSPlatform ("ios10.0")]
[SupportedOSPlatform ("macos10.12")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst10.0")]
UseKeyDecrypt = 4,
[SupportedOSPlatform ("ios10.0")]
[SupportedOSPlatform ("macos10.12")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst10.0")]
UseKeyKeyExchange = 5,
}
diff --git a/new/dotnet/ios/generated-sources/LocalAuthentication/LAAuthenticationRequirement.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LAAuthenticationRequirement.g.cs
new file mode 100644
index 0000000..ae9ee07
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LAAuthenticationRequirement.g.cs
@@ -0,0 +1,174 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAAuthenticationRequirement", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAAuthenticationRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAAuthenticationRequirement");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LAAuthenticationRequirement () : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAAuthenticationRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAAuthenticationRequirement (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("biometryRequirementWithFallback:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement GetBiometryRequirement (LABiometryFallbackRequirement fallback)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var fallback__handle__ = fallback!.GetNonNullHandle (nameof (fallback));
+ return Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (class_ptr, Selector.GetHandle ("biometryRequirementWithFallback:"), fallback__handle__))!;
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LAAuthenticationRequirement BiometryCurrentSetRequirement {
+ [Export ("biometryCurrentSetRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("biometryCurrentSetRequirement")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LAAuthenticationRequirement BiometryRequirement {
+ [Export ("biometryRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("biometryRequirement")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LAAuthenticationRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("defaultRequirement")))!;
+ return ret!;
+ #endif
+ }
+ }
+ } /* class LAAuthenticationRequirement */
+}
diff --git a/new/dotnet/ios/generated-sources/LocalAuthentication/LABiometryFallbackRequirement.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LABiometryFallbackRequirement.g.cs
new file mode 100644
index 0000000..424f6e3
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LABiometryFallbackRequirement.g.cs
@@ -0,0 +1,138 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LABiometryFallbackRequirement", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LABiometryFallbackRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LABiometryFallbackRequirement");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LABiometryFallbackRequirement () : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LABiometryFallbackRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LABiometryFallbackRequirement (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LABiometryFallbackRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("defaultRequirement")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LABiometryFallbackRequirement DevicePasscodeRequirement {
+ [Export ("devicePasscodeRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("devicePasscodeRequirement")))!;
+ return ret!;
+ #endif
+ }
+ }
+ } /* class LABiometryFallbackRequirement */
+}
diff --git a/old/dotnet/ios/generated-sources/LocalAuthentication/LABiometryType.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LABiometryType.g.cs
index 3c76101..ea9c6df 100644
--- a/old/dotnet/ios/generated-sources/LocalAuthentication/LABiometryType.g.cs
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LABiometryType.g.cs
@@ -51,12 +51,14 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("macos10.13.2")]
[SupportedOSPlatform ("ios11.0")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst11.0")]
[Native]
public enum LABiometryType : long {
None = 0,
TouchId = 1,
[SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios11.0")]
[SupportedOSPlatform ("maccatalyst11.0")]
FaceId = 2,
diff --git a/old/dotnet/ios/generated-sources/LocalAuthentication/LAContext.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LAContext.g.cs
index f263965..8e0e988 100644
--- a/old/dotnet/ios/generated-sources/LocalAuthentication/LAContext.g.cs
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LAContext.g.cs
@@ -52,6 +52,7 @@ namespace LocalAuthentication {
[Register("LAContext", true)]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
public unsafe partial class LAContext : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -82,6 +83,7 @@ namespace LocalAuthentication {
}
[Export ("canEvaluatePolicy:error:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -101,6 +103,7 @@ namespace LocalAuthentication {
[Export ("evaluateAccessControl:operation:localizedReason:reply:")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual void EvaluateAccessControl (global::Security.SecAccessControl accessControl, LAAccessControlOperation operation, string localizedReason, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity2V0))]global::System.Action<bool, NSError> reply)
@@ -125,6 +128,7 @@ namespace LocalAuthentication {
block_ptr_reply->CleanupBlock ();
}
[Export ("evaluatePolicy:localizedReason:reply:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -149,6 +153,7 @@ namespace LocalAuthentication {
CFString.ReleaseNative (nslocalizedReason);
block_ptr_reply->CleanupBlock ();
}
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -164,6 +169,7 @@ namespace LocalAuthentication {
[Export ("invalidate")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void Invalidate ()
@@ -177,6 +183,7 @@ namespace LocalAuthentication {
[Export ("isCredentialSet:")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool IsCredentialSet (LACredentialType type)
@@ -190,6 +197,7 @@ namespace LocalAuthentication {
[Export ("setCredential:type:")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool SetCredentialType (NSData? credential, LACredentialType type)
@@ -204,9 +212,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("macos10.13.2")]
[SupportedOSPlatform ("ios11.0")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst11.0")]
public virtual LABiometryType BiometryType {
[Export ("biometryType")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -227,9 +237,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
public virtual NSData? EvaluatedPolicyDomainState {
[Export ("evaluatedPolicyDomainState")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -285,9 +297,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios10.0")]
[SupportedOSPlatform ("macos10.12")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst10.0")]
public virtual string? LocalizedCancelTitle {
[Export ("localizedCancelTitle")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -299,6 +313,7 @@ namespace LocalAuthentication {
}
}
[Export ("setLocalizedCancelTitle:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -313,11 +328,13 @@ namespace LocalAuthentication {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
public virtual string? LocalizedFallbackTitle {
[Export ("localizedFallbackTitle")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -329,6 +346,7 @@ namespace LocalAuthentication {
}
}
[Export ("setLocalizedFallbackTitle:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -396,6 +414,7 @@ namespace LocalAuthentication {
[Advice ("Starting with macos10.11.")]
#endif
[UnsupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.3")]
#if __MACCATALYST__ && !__IOS__
[Advice ("Starting with maccatalyst9.0.")]
@@ -403,6 +422,7 @@ namespace LocalAuthentication {
[UnsupportedOSPlatform ("maccatalyst9.0")]
public virtual NSNumber? MaxBiometryFailures {
[Export ("maxBiometryFailures")]
+ [UnsupportedOSPlatform ("tvos")]
#if __IOS__
[Advice ("Starting with ios9.0.")]
#endif
@@ -428,6 +448,7 @@ namespace LocalAuthentication {
return ret!;
}
[Export ("setMaxBiometryFailures:")]
+ [UnsupportedOSPlatform ("tvos")]
#if __IOS__
[Advice ("Starting with ios9.0.")]
#endif
@@ -455,9 +476,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.12.4")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
public virtual double TouchIdAuthenticationAllowableReuseDuration {
[Export ("touchIDAuthenticationAllowableReuseDuration")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -469,6 +492,7 @@ namespace LocalAuthentication {
}
}
[Export ("setTouchIDAuthenticationAllowableReuseDuration:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -483,10 +507,12 @@ namespace LocalAuthentication {
[Field ("LATouchIDAuthenticationMaximumAllowableReuseDuration", "LocalAuthentication")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.12.4")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
public static double TouchIdAuthenticationMaximumAllowableReuseDuration {
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.12.4")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
get {
return Dlfcn.GetDouble (Libraries.LocalAuthentication.Handle, "LATouchIDAuthenticationMaximumAllowableReuseDuration");
diff --git a/old/dotnet/ios/generated-sources/LocalAuthentication/LACredentialType.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LACredentialType.g.cs
index 75f2282..0117fa1 100644
--- a/old/dotnet/ios/generated-sources/LocalAuthentication/LACredentialType.g.cs
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LACredentialType.g.cs
@@ -51,8 +51,8 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
- [SupportedOSPlatform ("maccatalyst9.0")]
[UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("maccatalyst9.0")]
[Native]
public enum LACredentialType : long {
ApplicationPassword = 0,
diff --git a/new/dotnet/ios/generated-sources/LocalAuthentication/LAPersistedRight.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LAPersistedRight.g.cs
new file mode 100644
index 0000000..4f8934f
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LAPersistedRight.g.cs
@@ -0,0 +1,130 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPersistedRight", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAPersistedRight : LARight {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAPersistedRight");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPersistedRight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPersistedRight (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LAPrivateKey Key {
+ [Export ("key")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LAPrivateKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("key")))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("key")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LASecret Secret {
+ [Export ("secret")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LASecret? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("secret")))!;
+ } else {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("secret")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class LAPersistedRight */
+}
diff --git a/old/dotnet/ios/generated-sources/LocalAuthentication/LAPolicy.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LAPolicy.g.cs
index 6068df2..b8a88b5 100644
--- a/old/dotnet/ios/generated-sources/LocalAuthentication/LAPolicy.g.cs
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LAPolicy.g.cs
@@ -51,21 +51,36 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
[Native]
public enum LAPolicy : long {
[SupportedOSPlatform ("macos10.12.2")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("maccatalyst8.0")]
DeviceOwnerAuthenticationWithBiometrics = 1,
DeviceOwnerAuthentication = 2,
[UnsupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
DeviceOwnerAuthenticationWithWatch = 3,
[UnsupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ DeviceOwnerAuthenticationWithBiometricsOrWatch = 4,
+ [UnsupportedOSPlatform ("ios")]
+ [SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [Obsolete ("Use DeviceOwnerAuthenticationWithBiometricsOrWatch enum value instead.", false)]
OwnerAuthenticationWithBiometricsOrWatch = 4,
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("ios")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ DeviceOwnerAuthenticationWithWristDetection = 5,
}
}
diff --git a/new/dotnet/ios/generated-sources/LocalAuthentication/LAPrivateKey.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LAPrivateKey.g.cs
new file mode 100644
index 0000000..6788e2b
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LAPrivateKey.g.cs
@@ -0,0 +1,289 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPrivateKey", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAPrivateKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAPrivateKey");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPrivateKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPrivateKey (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("canDecryptUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanDecrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canDecryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canDecryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ #endif
+ }
+ [Export ("canExchangeKeysUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanExchangeKeys (global::Security.SecKeyAlgorithm algorithm)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canExchangeKeysUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canExchangeKeysUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ #endif
+ }
+ [Export ("canSignUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanSign (global::Security.SecKeyAlgorithm algorithm)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canSignUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canSignUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ #endif
+ }
+ [Export ("decryptData:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Decrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle (this.Handle, Selector.GetHandle ("decryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle (this.SuperHandle, Selector.GetHandle ("decryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> DecryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Decrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExchangeKeys (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var publicKey__handle__ = publicKey!.GetNonNullHandle (nameof (publicKey));
+ var parameters__handle__ = parameters!.GetNonNullHandle (nameof (parameters));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:"), publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:"), publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExchangeKeysAsync (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExchangeKeys(publicKey, algorithm, parameters, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("signData:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Sign (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle (this.Handle, Selector.GetHandle ("signData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle (this.SuperHandle, Selector.GetHandle ("signData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> SignAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Sign(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LAPublicKey PublicKey {
+ [Export ("publicKey")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LAPublicKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("publicKey")))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("publicKey")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class LAPrivateKey */
+}
diff --git a/new/dotnet/ios/generated-sources/LocalAuthentication/LAPublicKey.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LAPublicKey.g.cs
new file mode 100644
index 0000000..a4c6892
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LAPublicKey.g.cs
@@ -0,0 +1,245 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPublicKey", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAPublicKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAPublicKey");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPublicKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPublicKey (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("canEncryptUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanEncrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canEncryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canEncryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ #endif
+ }
+ [Export ("canVerifyUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanVerify (global::Security.SecKeyAlgorithm algorithm)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canVerifyUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canVerifyUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ #endif
+ }
+ [Export ("encryptData:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Encrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle (this.Handle, Selector.GetHandle ("encryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle (this.SuperHandle, Selector.GetHandle ("encryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> EncryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Encrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exportBytesWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExportBytes ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("exportBytesWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("exportBytesWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExportBytesAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExportBytes((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("verifyData:signature:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Verify (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyVerifyDataCompletionHandler))]LAPublicKeyVerifyDataCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var signedData__handle__ = signedData!.GetNonNullHandle (nameof (signedData));
+ var signature__handle__ = signature!.GetNonNullHandle (nameof (signature));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyVerifyDataCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_int_NativeHandle (this.Handle, Selector.GetHandle ("verifyData:signature:secKeyAlgorithm:completion:"), signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle_int_NativeHandle (this.SuperHandle, Selector.GetHandle ("verifyData:signature:secKeyAlgorithm:completion:"), signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task VerifyAsync (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Verify(signedData, signature, algorithm, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class LAPublicKey */
+}
diff --git a/new/dotnet/ios/generated-sources/LocalAuthentication/LARight.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LARight.g.cs
new file mode 100644
index 0000000..3dddd3f
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LARight.g.cs
@@ -0,0 +1,307 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARight", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LARight : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LARight");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LARight () : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARight (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithRequirement:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public LARight (LAAuthenticationRequirement requirement)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var requirement__handle__ = requirement!.GetNonNullHandle (nameof (requirement));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("initWithRequirement:"), requirement__handle__), "initWithRequirement:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithRequirement:"), requirement__handle__), "initWithRequirement:");
+ }
+ #endif
+ }
+ [Export ("authorizeWithLocalizedReason:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Authorize (string localizedReason, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (localizedReason is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (localizedReason));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nslocalizedReason = CFString.CreateNative (localizedReason);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("authorizeWithLocalizedReason:completion:"), nslocalizedReason, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("authorizeWithLocalizedReason:completion:"), nslocalizedReason, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nslocalizedReason);
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task AuthorizeAsync (string localizedReason)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Authorize(localizedReason, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("checkCanAuthorizeWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void CheckCanAuthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("checkCanAuthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("checkCanAuthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task CheckCanAuthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ CheckCanAuthorize((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("deauthorizeWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Deauthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDAction))]global::System.Action handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDAction.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("deauthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("deauthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task DeauthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Deauthorize(() => {
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LARightState State {
+ [Export ("state")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LARightState ret;
+ if (IsDirectBinding) {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("state"));
+ } else {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("state"));
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual nint Tag {
+ [Export ("tag")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("tag"));
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("tag"));
+ }
+ #endif
+ }
+ [Export ("setTag:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setTag:"), value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setTag:"), value);
+ }
+ #endif
+ }
+ }
+ } /* class LARight */
+}
diff --git a/new/dotnet/ios/generated-sources/LocalAuthentication/LARightState.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LARightState.g.cs
new file mode 100644
index 0000000..23b4b15
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LARightState.g.cs
@@ -0,0 +1,63 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ [Native]
+ public enum LARightState : long {
+ Unknown = 0,
+ Authorizing = 1,
+ Authorized = 2,
+ NotAuthorized = 3,
+ }
+}
diff --git a/new/dotnet/ios/generated-sources/LocalAuthentication/LARightStore.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LARightStore.g.cs
new file mode 100644
index 0000000..2b26f32
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LARightStore.g.cs
@@ -0,0 +1,373 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARightStore", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LARightStore : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LARightStore");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARightStore (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARightStore (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("rightForIdentifier:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Get (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("rightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("rightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> GetAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Get(identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRight:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (LAPersistedRight right, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("removeRight:completion:"), right__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("removeRight:completion:"), right__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (LAPersistedRight right)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(right, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRightForIdentifier:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("removeRightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("removeRightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(identifier, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeAllRightsWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void RemoveAll ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("removeAllRightsWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("removeAllRightsWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAllAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ RemoveAll((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("saveRight:identifier:completion:"), right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("saveRight:identifier:completion:"), right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:secret:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, NSData secret, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var secret__handle__ = secret!.GetNonNullHandle (nameof (secret));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("saveRight:identifier:secret:completion:"), right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("saveRight:identifier:secret:completion:"), right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier, NSData secret)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, secret, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LARightStore SharedStore {
+ [Export ("sharedStore")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LARightStore? ret;
+ ret = Runtime.GetNSObject<LARightStore> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("sharedStore")))!;
+ return ret!;
+ #endif
+ }
+ }
+ } /* class LARightStore */
+}
diff --git a/new/dotnet/ios/generated-sources/LocalAuthentication/LASecret.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LASecret.g.cs
new file mode 100644
index 0000000..23da02a
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LASecret.g.cs
@@ -0,0 +1,122 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LASecret", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LASecret : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LASecret");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LASecret (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LASecret (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("loadDataWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void LoadData ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLASecretCompletionHandler))]LASecretCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLASecretCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("loadDataWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("loadDataWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> LoadDataAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ LoadData((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ } /* class LASecret */
+}
diff --git a/old/dotnet/ios/generated-sources/LocalAuthentication/LAStatus.g.cs b/new/dotnet/ios/generated-sources/LocalAuthentication/LAStatus.g.cs
index eb335d6..431a59f 100644
--- a/old/dotnet/ios/generated-sources/LocalAuthentication/LAStatus.g.cs
+++ b/new/dotnet/ios/generated-sources/LocalAuthentication/LAStatus.g.cs
@@ -51,6 +51,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
[Native ("LAError")]
public enum LAStatus : long {
@@ -63,32 +64,45 @@ namespace LocalAuthentication {
AppCancel = -9,
InvalidContext = -10,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
WatchNotAvailable = -11,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
BiometryNotPaired = -12,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
BiometryDisconnected = -13,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
InvalidDimension = -14,
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("macos10.10")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
BiometryNotAvailable = -6,
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("macos10.10")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
BiometryNotEnrolled = -7,
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("macos10.10")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
BiometryLockout = -8,
NotInteractive = -1004,
}
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static public partial class LAStatusExtensions {
diff --git a/old/dotnet/ios/generated-sources/ObjCRuntime/Messaging.g.cs b/new/dotnet/ios/generated-sources/ObjCRuntime/Messaging.g.cs
index de6c6d1..4f31789 100644
--- a/old/dotnet/ios/generated-sources/ObjCRuntime/Messaging.g.cs
+++ b/new/dotnet/ios/generated-sources/ObjCRuntime/Messaging.g.cs
@@ -3963,6 +3963,24 @@ namespace ObjCRuntime {
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static void void_objc_msgSendSuper_NativeHandle_IntPtr_NativeHandle_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, IntPtr arg2, NativeHandle arg3, NativeHandle arg4);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSend_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSendSuper_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_NativeHandle_int_NativeHandle_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_NativeHandle_int_NativeHandle_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_NativeHandle_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, NativeHandle arg2, int arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_NativeHandle_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, NativeHandle arg2, int arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
public extern static NativeHandle NativeHandle_objc_msgSend_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static NativeHandle NativeHandle_objc_msgSendSuper_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
diff --git a/old/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
index 863db9d..d9874df 100644
--- a/old/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/ios/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -9503,6 +9503,297 @@ namespace ObjCRuntime {
}
} /* class NIDLAContextReplyHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPrivateKeyCompletionHandler))]
+ internal delegate void DLAPrivateKeyCompletionHandler (IntPtr block, NativeHandle data, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPrivateKeyCompletionHandler {
+ static internal readonly DLAPrivateKeyCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLAPrivateKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle data, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPrivateKeyCompletionHandler */
+ internal sealed class NIDLAPrivateKeyCompletionHandler : TrampolineBlockBase {
+ DLAPrivateKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPrivateKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPrivateKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPrivateKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPrivateKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPrivateKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyCompletionHandler))]
+ internal delegate void DLAPublicKeyCompletionHandler (IntPtr block, NativeHandle data, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyCompletionHandler {
+ static internal readonly DLAPublicKeyCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLAPublicKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle data, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyCompletionHandler */
+ internal sealed class NIDLAPublicKeyCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPublicKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler))]
+ internal delegate void DLAPublicKeyVerifyDataCompletionHandler (IntPtr block, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyVerifyDataCompletionHandler {
+ static internal readonly DLAPublicKeyVerifyDataCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLAPublicKeyVerifyDataCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyVerifyDataCompletionHandler */
+ internal sealed class NIDLAPublicKeyVerifyDataCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyVerifyDataCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyVerifyDataCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyVerifyDataCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyVerifyDataCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLAPublicKeyVerifyDataCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightAuthorizeCompletionHandler))]
+ internal delegate void DLARightAuthorizeCompletionHandler (IntPtr block, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightAuthorizeCompletionHandler {
+ static internal readonly DLARightAuthorizeCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLARightAuthorizeCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightAuthorizeCompletionHandler */
+ internal sealed class NIDLARightAuthorizeCompletionHandler : TrampolineBlockBase {
+ DLARightAuthorizeCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightAuthorizeCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightAuthorizeCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightAuthorizeCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightAuthorizeCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightAuthorizeCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreCompletionHandler))]
+ internal delegate void DLARightStoreCompletionHandler (IntPtr block, NativeHandle right, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreCompletionHandler {
+ static internal readonly DLARightStoreCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLARightStoreCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle right, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<LocalAuthentication.LAPersistedRight> (right)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreCompletionHandler */
+ internal sealed class NIDLARightStoreCompletionHandler : TrampolineBlockBase {
+ DLARightStoreCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::LocalAuthentication.LAPersistedRight? right, NSError? error)
+ {
+ var right__handle__ = right.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, right__handle__, error__handle__);
+ }
+ } /* class NIDLARightStoreCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler))]
+ internal delegate void DLARightStoreRemoveRightCompletionHandler (IntPtr block, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreRemoveRightCompletionHandler {
+ static internal readonly DLARightStoreRemoveRightCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLARightStoreRemoveRightCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreRemoveRightCompletionHandler */
+ internal sealed class NIDLARightStoreRemoveRightCompletionHandler : TrampolineBlockBase {
+ DLARightStoreRemoveRightCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreRemoveRightCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreRemoveRightCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreRemoveRightCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightStoreRemoveRightCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LASecretCompletionHandler))]
+ internal delegate void DLASecretCompletionHandler (IntPtr block, NativeHandle data, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLASecretCompletionHandler {
+ static internal readonly DLASecretCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLASecretCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle data, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLASecretCompletionHandler */
+ internal sealed class NIDLASecretCompletionHandler : TrampolineBlockBase {
+ DLASecretCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLASecretCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLASecretCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LASecretCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLASecretCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLASecretCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::MLCompute.MLCGraphCompletionHandler))]
internal delegate void DMLCGraphCompletionHandler (IntPtr block, NativeHandle resultTensor, NativeHandle error, double executionTime);
//
diff --git a/old/dotnet/ios/generated-sources/SupportDelegates.g.cs b/new/dotnet/ios/generated-sources/SupportDelegates.g.cs
index f368062..5a8f266 100644
--- a/old/dotnet/ios/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/ios/generated-sources/SupportDelegates.g.cs
@@ -371,6 +371,13 @@ namespace JavaScriptCore {
namespace LocalAuthentication {
#nullable enable
public delegate void LAContextReplyHandler (bool success, NSError error);
+ public delegate void LAPrivateKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyVerifyDataCompletionHandler (NSError? error);
+ public delegate void LARightAuthorizeCompletionHandler (NSError? error);
+ public delegate void LARightStoreCompletionHandler (LocalAuthentication.LAPersistedRight? right, NSError? error);
+ public delegate void LARightStoreRemoveRightCompletionHandler (NSError? error);
+ public delegate void LASecretCompletionHandler (NSData? data, NSError? error);
}
namespace MLCompute {
#nullable enable
diff --git a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs
index 9cf1a30..5759424 100644
--- a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs
@@ -51,6 +51,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[Native]
public enum LAAccessControlOperation : long {
@@ -60,10 +61,12 @@ namespace LocalAuthentication {
UseKeySign = 3,
[SupportedOSPlatform ("ios10.0")]
[SupportedOSPlatform ("macos10.12")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst10.0")]
UseKeyDecrypt = 4,
[SupportedOSPlatform ("ios10.0")]
[SupportedOSPlatform ("macos10.12")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst10.0")]
UseKeyKeyExchange = 5,
}
diff --git a/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAAuthenticationRequirement.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAAuthenticationRequirement.g.cs
new file mode 100644
index 0000000..75b8124
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAAuthenticationRequirement.g.cs
@@ -0,0 +1,148 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAAuthenticationRequirement", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAAuthenticationRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAAuthenticationRequirement");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LAAuthenticationRequirement () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAAuthenticationRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAAuthenticationRequirement (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("biometryRequirementWithFallback:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement GetBiometryRequirement (LABiometryFallbackRequirement fallback)
+ {
+ var fallback__handle__ = fallback!.GetNonNullHandle (nameof (fallback));
+ return Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (class_ptr, Selector.GetHandle ("biometryRequirementWithFallback:"), fallback__handle__))!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LAAuthenticationRequirement BiometryCurrentSetRequirement {
+ [Export ("biometryCurrentSetRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("biometryCurrentSetRequirement")))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LAAuthenticationRequirement BiometryRequirement {
+ [Export ("biometryRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("biometryRequirement")))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LAAuthenticationRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("defaultRequirement")))!;
+ return ret!;
+ }
+ }
+ } /* class LAAuthenticationRequirement */
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LABiometryFallbackRequirement.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LABiometryFallbackRequirement.g.cs
new file mode 100644
index 0000000..aac22b8
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LABiometryFallbackRequirement.g.cs
@@ -0,0 +1,120 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LABiometryFallbackRequirement", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LABiometryFallbackRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LABiometryFallbackRequirement");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LABiometryFallbackRequirement () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LABiometryFallbackRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LABiometryFallbackRequirement (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LABiometryFallbackRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("defaultRequirement")))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LABiometryFallbackRequirement DevicePasscodeRequirement {
+ [Export ("devicePasscodeRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("devicePasscodeRequirement")))!;
+ return ret!;
+ }
+ }
+ } /* class LABiometryFallbackRequirement */
+}
diff --git a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LABiometryType.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LABiometryType.g.cs
index e592585..f5ad3a2 100644
--- a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LABiometryType.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LABiometryType.g.cs
@@ -51,12 +51,14 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("macos10.13.2")]
[SupportedOSPlatform ("ios11.0")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst11.0")]
[Native]
public enum LABiometryType : long {
None = 0,
TouchId = 1,
[SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios11.0")]
[SupportedOSPlatform ("maccatalyst11.0")]
FaceId = 2,
diff --git a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAContext.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAContext.g.cs
index 6d8a423..c1f53f6 100644
--- a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAContext.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAContext.g.cs
@@ -52,6 +52,7 @@ namespace LocalAuthentication {
[Register("LAContext", true)]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
public unsafe partial class LAContext : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -82,6 +83,7 @@ namespace LocalAuthentication {
}
[Export ("canEvaluatePolicy:error:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -101,6 +103,7 @@ namespace LocalAuthentication {
[Export ("evaluateAccessControl:operation:localizedReason:reply:")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual void EvaluateAccessControl (global::Security.SecAccessControl accessControl, LAAccessControlOperation operation, string localizedReason, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity2V13))]global::System.Action<bool, NSError> reply)
@@ -125,6 +128,7 @@ namespace LocalAuthentication {
block_ptr_reply->CleanupBlock ();
}
[Export ("evaluatePolicy:localizedReason:reply:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -149,6 +153,7 @@ namespace LocalAuthentication {
CFString.ReleaseNative (nslocalizedReason);
block_ptr_reply->CleanupBlock ();
}
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -164,6 +169,7 @@ namespace LocalAuthentication {
[Export ("invalidate")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void Invalidate ()
@@ -177,6 +183,7 @@ namespace LocalAuthentication {
[Export ("isCredentialSet:")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool IsCredentialSet (LACredentialType type)
@@ -190,6 +197,7 @@ namespace LocalAuthentication {
[Export ("setCredential:type:")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool SetCredentialType (NSData? credential, LACredentialType type)
@@ -204,9 +212,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("macos10.13.2")]
[SupportedOSPlatform ("ios11.0")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst11.0")]
public virtual LABiometryType BiometryType {
[Export ("biometryType")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -223,9 +233,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
public virtual NSData? EvaluatedPolicyDomainState {
[Export ("evaluatedPolicyDomainState")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -273,9 +285,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios10.0")]
[SupportedOSPlatform ("macos10.12")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst10.0")]
public virtual string? LocalizedCancelTitle {
[Export ("localizedCancelTitle")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -287,6 +301,7 @@ namespace LocalAuthentication {
}
}
[Export ("setLocalizedCancelTitle:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -301,11 +316,13 @@ namespace LocalAuthentication {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
public virtual string? LocalizedFallbackTitle {
[Export ("localizedFallbackTitle")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -317,6 +334,7 @@ namespace LocalAuthentication {
}
}
[Export ("setLocalizedFallbackTitle:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -376,6 +394,7 @@ namespace LocalAuthentication {
[Advice ("Starting with macos10.11.")]
#endif
[UnsupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.3")]
#if __MACCATALYST__ && !__IOS__
[Advice ("Starting with maccatalyst9.0.")]
@@ -383,6 +402,7 @@ namespace LocalAuthentication {
[UnsupportedOSPlatform ("maccatalyst9.0")]
public virtual NSNumber? MaxBiometryFailures {
[Export ("maxBiometryFailures")]
+ [UnsupportedOSPlatform ("tvos")]
#if __IOS__
[Advice ("Starting with ios9.0.")]
#endif
@@ -408,6 +428,7 @@ namespace LocalAuthentication {
return ret!;
}
[Export ("setMaxBiometryFailures:")]
+ [UnsupportedOSPlatform ("tvos")]
#if __IOS__
[Advice ("Starting with ios9.0.")]
#endif
@@ -435,9 +456,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.12.4")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
public virtual double TouchIdAuthenticationAllowableReuseDuration {
[Export ("touchIDAuthenticationAllowableReuseDuration")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -449,6 +472,7 @@ namespace LocalAuthentication {
}
}
[Export ("setTouchIDAuthenticationAllowableReuseDuration:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -463,10 +487,12 @@ namespace LocalAuthentication {
[Field ("LATouchIDAuthenticationMaximumAllowableReuseDuration", "LocalAuthentication")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.12.4")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
public static double TouchIdAuthenticationMaximumAllowableReuseDuration {
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.12.4")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
get {
return Dlfcn.GetDouble (Libraries.LocalAuthentication.Handle, "LATouchIDAuthenticationMaximumAllowableReuseDuration");
diff --git a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LACredentialType.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LACredentialType.g.cs
index f923b4b..7b8485a 100644
--- a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LACredentialType.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LACredentialType.g.cs
@@ -51,8 +51,8 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
- [SupportedOSPlatform ("maccatalyst9.0")]
[UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("maccatalyst9.0")]
[Native]
public enum LACredentialType : long {
ApplicationPassword = 0,
diff --git a/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPersistedRight.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPersistedRight.g.cs
new file mode 100644
index 0000000..d029a1e
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPersistedRight.g.cs
@@ -0,0 +1,116 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPersistedRight", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAPersistedRight : LARight {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAPersistedRight");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPersistedRight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPersistedRight (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LAPrivateKey Key {
+ [Export ("key")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LAPrivateKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("key")))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("key")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LASecret Secret {
+ [Export ("secret")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LASecret? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("secret")))!;
+ } else {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("secret")))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class LAPersistedRight */
+}
diff --git a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPolicy.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPolicy.g.cs
index d1a3d42..b1421f3 100644
--- a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPolicy.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPolicy.g.cs
@@ -51,21 +51,36 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
[Native]
public enum LAPolicy : long {
[SupportedOSPlatform ("macos10.12.2")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("maccatalyst8.0")]
DeviceOwnerAuthenticationWithBiometrics = 1,
DeviceOwnerAuthentication = 2,
[UnsupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
DeviceOwnerAuthenticationWithWatch = 3,
[UnsupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ DeviceOwnerAuthenticationWithBiometricsOrWatch = 4,
+ [UnsupportedOSPlatform ("ios")]
+ [SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [Obsolete ("Use DeviceOwnerAuthenticationWithBiometricsOrWatch enum value instead.", false)]
OwnerAuthenticationWithBiometricsOrWatch = 4,
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("ios")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ DeviceOwnerAuthenticationWithWristDetection = 5,
}
}
diff --git a/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPrivateKey.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPrivateKey.g.cs
new file mode 100644
index 0000000..7ec0365
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPrivateKey.g.cs
@@ -0,0 +1,255 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPrivateKey", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAPrivateKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAPrivateKey");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPrivateKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPrivateKey (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("canDecryptUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanDecrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canDecryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canDecryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ }
+ [Export ("canExchangeKeysUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanExchangeKeys (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canExchangeKeysUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canExchangeKeysUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ }
+ [Export ("canSignUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanSign (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canSignUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canSignUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ }
+ [Export ("decryptData:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Decrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle (this.Handle, Selector.GetHandle ("decryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle (this.SuperHandle, Selector.GetHandle ("decryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> DecryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Decrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExchangeKeys (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var publicKey__handle__ = publicKey!.GetNonNullHandle (nameof (publicKey));
+ var parameters__handle__ = parameters!.GetNonNullHandle (nameof (parameters));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:"), publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:"), publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExchangeKeysAsync (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExchangeKeys(publicKey, algorithm, parameters, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("signData:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Sign (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle (this.Handle, Selector.GetHandle ("signData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle (this.SuperHandle, Selector.GetHandle ("signData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> SignAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Sign(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LAPublicKey PublicKey {
+ [Export ("publicKey")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LAPublicKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("publicKey")))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("publicKey")))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class LAPrivateKey */
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPublicKey.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPublicKey.g.cs
new file mode 100644
index 0000000..e91cc18
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAPublicKey.g.cs
@@ -0,0 +1,219 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPublicKey", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAPublicKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAPublicKey");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPublicKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPublicKey (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("canEncryptUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanEncrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canEncryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canEncryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ }
+ [Export ("canVerifyUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanVerify (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canVerifyUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canVerifyUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ }
+ [Export ("encryptData:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Encrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle (this.Handle, Selector.GetHandle ("encryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle (this.SuperHandle, Selector.GetHandle ("encryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> EncryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Encrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exportBytesWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExportBytes ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("exportBytesWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("exportBytesWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExportBytesAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExportBytes((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("verifyData:signature:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Verify (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyVerifyDataCompletionHandler))]LAPublicKeyVerifyDataCompletionHandler handler)
+ {
+ var signedData__handle__ = signedData!.GetNonNullHandle (nameof (signedData));
+ var signature__handle__ = signature!.GetNonNullHandle (nameof (signature));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyVerifyDataCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_int_NativeHandle (this.Handle, Selector.GetHandle ("verifyData:signature:secKeyAlgorithm:completion:"), signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle_int_NativeHandle (this.SuperHandle, Selector.GetHandle ("verifyData:signature:secKeyAlgorithm:completion:"), signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task VerifyAsync (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Verify(signedData, signature, algorithm, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class LAPublicKey */
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LARight.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LARight.g.cs
new file mode 100644
index 0000000..acde9ce
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LARight.g.cs
@@ -0,0 +1,269 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARight", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LARight : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LARight");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LARight () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARight (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithRequirement:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public LARight (LAAuthenticationRequirement requirement)
+ : base (NSObjectFlag.Empty)
+ {
+ var requirement__handle__ = requirement!.GetNonNullHandle (nameof (requirement));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("initWithRequirement:"), requirement__handle__), "initWithRequirement:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithRequirement:"), requirement__handle__), "initWithRequirement:");
+ }
+ }
+ [Export ("authorizeWithLocalizedReason:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Authorize (string localizedReason, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ if (localizedReason is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (localizedReason));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nslocalizedReason = CFString.CreateNative (localizedReason);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("authorizeWithLocalizedReason:completion:"), nslocalizedReason, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("authorizeWithLocalizedReason:completion:"), nslocalizedReason, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nslocalizedReason);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task AuthorizeAsync (string localizedReason)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Authorize(localizedReason, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("checkCanAuthorizeWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void CheckCanAuthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("checkCanAuthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("checkCanAuthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task CheckCanAuthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ CheckCanAuthorize((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("deauthorizeWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Deauthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDAction))]global::System.Action handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDAction.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("deauthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("deauthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task DeauthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Deauthorize(() => {
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LARightState State {
+ [Export ("state")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LARightState ret;
+ if (IsDirectBinding) {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("state"));
+ } else {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("state"));
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual nint Tag {
+ [Export ("tag")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("tag"));
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("tag"));
+ }
+ }
+ [Export ("setTag:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setTag:"), value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setTag:"), value);
+ }
+ }
+ }
+ } /* class LARight */
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LARightState.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LARightState.g.cs
new file mode 100644
index 0000000..d5e8be7
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LARightState.g.cs
@@ -0,0 +1,63 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ [Native]
+ public enum LARightState : long {
+ Unknown = 0,
+ Authorizing = 1,
+ Authorized = 2,
+ NotAuthorized = 3,
+ }
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LARightStore.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LARightStore.g.cs
new file mode 100644
index 0000000..2802307
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LARightStore.g.cs
@@ -0,0 +1,339 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARightStore", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LARightStore : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LARightStore");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARightStore (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARightStore (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("rightForIdentifier:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Get (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("rightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("rightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> GetAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Get(identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRight:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (LAPersistedRight right, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("removeRight:completion:"), right__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("removeRight:completion:"), right__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (LAPersistedRight right)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(right, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRightForIdentifier:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("removeRightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("removeRightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(identifier, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeAllRightsWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void RemoveAll ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("removeAllRightsWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("removeAllRightsWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAllAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ RemoveAll((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("saveRight:identifier:completion:"), right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("saveRight:identifier:completion:"), right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:secret:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, NSData secret, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var secret__handle__ = secret!.GetNonNullHandle (nameof (secret));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("saveRight:identifier:secret:completion:"), right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("saveRight:identifier:secret:completion:"), right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier, NSData secret)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, secret, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LARightStore SharedStore {
+ [Export ("sharedStore")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LARightStore? ret;
+ ret = Runtime.GetNSObject<LARightStore> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, Selector.GetHandle ("sharedStore")))!;
+ return ret!;
+ }
+ }
+ } /* class LARightStore */
+}
diff --git a/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LASecret.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LASecret.g.cs
new file mode 100644
index 0000000..bd2a528
--- /dev/null
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LASecret.g.cs
@@ -0,0 +1,112 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using Metal;
+using CoreML;
+using AppKit;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LASecret", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LASecret : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LASecret");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LASecret (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LASecret (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("loadDataWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void LoadData ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLASecretCompletionHandler))]LASecretCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLASecretCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("loadDataWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("loadDataWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> LoadDataAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ LoadData((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ } /* class LASecret */
+}
diff --git a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAStatus.g.cs b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAStatus.g.cs
index 33ab2a5..6a8633b 100644
--- a/old/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAStatus.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/LocalAuthentication/LAStatus.g.cs
@@ -51,6 +51,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
[Native ("LAError")]
public enum LAStatus : long {
@@ -63,32 +64,45 @@ namespace LocalAuthentication {
AppCancel = -9,
InvalidContext = -10,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
WatchNotAvailable = -11,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
BiometryNotPaired = -12,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
BiometryDisconnected = -13,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
InvalidDimension = -14,
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("macos10.10")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
BiometryNotAvailable = -6,
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("macos10.10")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
BiometryNotEnrolled = -7,
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("macos10.10")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
BiometryLockout = -8,
NotInteractive = -1004,
}
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static public partial class LAStatusExtensions {
diff --git a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Messaging.g.cs b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Messaging.g.cs
index 675f1fa..fb5bc86 100644
--- a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Messaging.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Messaging.g.cs
@@ -3761,6 +3761,24 @@ namespace ObjCRuntime {
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static void void_objc_msgSendSuper_NativeHandle_IntPtr_NativeHandle_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, IntPtr arg2, NativeHandle arg3, NativeHandle arg4);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSend_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSendSuper_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_NativeHandle_int_NativeHandle_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_NativeHandle_int_NativeHandle_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_NativeHandle_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, NativeHandle arg2, int arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_NativeHandle_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, NativeHandle arg2, int arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
public extern static NativeHandle NativeHandle_objc_msgSend_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static NativeHandle NativeHandle_objc_msgSendSuper_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
diff --git a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
index 15387af..dd385ef 100644
--- a/old/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -8981,6 +8981,297 @@ namespace ObjCRuntime {
}
} /* class NIDLAContextReplyHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPrivateKeyCompletionHandler))]
+ internal delegate void DLAPrivateKeyCompletionHandler (IntPtr block, NativeHandle data, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPrivateKeyCompletionHandler {
+ static internal readonly DLAPrivateKeyCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLAPrivateKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle data, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPrivateKeyCompletionHandler */
+ internal sealed class NIDLAPrivateKeyCompletionHandler : TrampolineBlockBase {
+ DLAPrivateKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPrivateKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPrivateKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPrivateKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPrivateKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPrivateKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyCompletionHandler))]
+ internal delegate void DLAPublicKeyCompletionHandler (IntPtr block, NativeHandle data, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyCompletionHandler {
+ static internal readonly DLAPublicKeyCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLAPublicKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle data, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyCompletionHandler */
+ internal sealed class NIDLAPublicKeyCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPublicKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler))]
+ internal delegate void DLAPublicKeyVerifyDataCompletionHandler (IntPtr block, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyVerifyDataCompletionHandler {
+ static internal readonly DLAPublicKeyVerifyDataCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLAPublicKeyVerifyDataCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyVerifyDataCompletionHandler */
+ internal sealed class NIDLAPublicKeyVerifyDataCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyVerifyDataCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyVerifyDataCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyVerifyDataCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyVerifyDataCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLAPublicKeyVerifyDataCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightAuthorizeCompletionHandler))]
+ internal delegate void DLARightAuthorizeCompletionHandler (IntPtr block, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightAuthorizeCompletionHandler {
+ static internal readonly DLARightAuthorizeCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLARightAuthorizeCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightAuthorizeCompletionHandler */
+ internal sealed class NIDLARightAuthorizeCompletionHandler : TrampolineBlockBase {
+ DLARightAuthorizeCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightAuthorizeCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightAuthorizeCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightAuthorizeCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightAuthorizeCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightAuthorizeCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreCompletionHandler))]
+ internal delegate void DLARightStoreCompletionHandler (IntPtr block, NativeHandle right, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreCompletionHandler {
+ static internal readonly DLARightStoreCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLARightStoreCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle right, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<LocalAuthentication.LAPersistedRight> (right)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreCompletionHandler */
+ internal sealed class NIDLARightStoreCompletionHandler : TrampolineBlockBase {
+ DLARightStoreCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::LocalAuthentication.LAPersistedRight? right, NSError? error)
+ {
+ var right__handle__ = right.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, right__handle__, error__handle__);
+ }
+ } /* class NIDLARightStoreCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler))]
+ internal delegate void DLARightStoreRemoveRightCompletionHandler (IntPtr block, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreRemoveRightCompletionHandler {
+ static internal readonly DLARightStoreRemoveRightCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLARightStoreRemoveRightCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreRemoveRightCompletionHandler */
+ internal sealed class NIDLARightStoreRemoveRightCompletionHandler : TrampolineBlockBase {
+ DLARightStoreRemoveRightCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreRemoveRightCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreRemoveRightCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreRemoveRightCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightStoreRemoveRightCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LASecretCompletionHandler))]
+ internal delegate void DLASecretCompletionHandler (IntPtr block, NativeHandle data, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLASecretCompletionHandler {
+ static internal readonly DLASecretCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLASecretCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle data, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLASecretCompletionHandler */
+ internal sealed class NIDLASecretCompletionHandler : TrampolineBlockBase {
+ DLASecretCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLASecretCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLASecretCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LASecretCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLASecretCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLASecretCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::MLCompute.MLCGraphCompletionHandler))]
internal delegate void DMLCGraphCompletionHandler (IntPtr block, NativeHandle resultTensor, NativeHandle error, double executionTime);
//
diff --git a/old/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs b/new/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
index 51bbe86..4977f0b 100644
--- a/old/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/maccatalyst/generated-sources/SupportDelegates.g.cs
@@ -352,6 +352,13 @@ namespace JavaScriptCore {
namespace LocalAuthentication {
#nullable enable
public delegate void LAContextReplyHandler (bool success, NSError error);
+ public delegate void LAPrivateKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyVerifyDataCompletionHandler (NSError? error);
+ public delegate void LARightAuthorizeCompletionHandler (NSError? error);
+ public delegate void LARightStoreCompletionHandler (LocalAuthentication.LAPersistedRight? right, NSError? error);
+ public delegate void LARightStoreRemoveRightCompletionHandler (NSError? error);
+ public delegate void LASecretCompletionHandler (NSData? data, NSError? error);
}
namespace MLCompute {
#nullable enable
diff --git a/old/dotnet/macos/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs
index 1b17816..9e67e4b 100644
--- a/old/dotnet/macos/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LAAccessControlOperation.g.cs
@@ -46,6 +46,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[Native]
public enum LAAccessControlOperation : long {
@@ -55,10 +56,12 @@ namespace LocalAuthentication {
UseKeySign = 3,
[SupportedOSPlatform ("ios10.0")]
[SupportedOSPlatform ("macos10.12")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst10.0")]
UseKeyDecrypt = 4,
[SupportedOSPlatform ("ios10.0")]
[SupportedOSPlatform ("macos10.12")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst10.0")]
UseKeyKeyExchange = 5,
}
diff --git a/new/dotnet/macos/generated-sources/LocalAuthentication/LAAuthenticationRequirement.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LAAuthenticationRequirement.g.cs
new file mode 100644
index 0000000..49d900f
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LAAuthenticationRequirement.g.cs
@@ -0,0 +1,155 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAAuthenticationRequirement", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAAuthenticationRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBiometryCurrentSetRequirement = "biometryCurrentSetRequirement";
+ static readonly NativeHandle selBiometryCurrentSetRequirementHandle = Selector.GetHandle ("biometryCurrentSetRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBiometryRequirement = "biometryRequirement";
+ static readonly NativeHandle selBiometryRequirementHandle = Selector.GetHandle ("biometryRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBiometryRequirementWithFallback_ = "biometryRequirementWithFallback:";
+ static readonly NativeHandle selBiometryRequirementWithFallback_Handle = Selector.GetHandle ("biometryRequirementWithFallback:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDefaultRequirement = "defaultRequirement";
+ static readonly NativeHandle selDefaultRequirementHandle = Selector.GetHandle ("defaultRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAAuthenticationRequirement");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LAAuthenticationRequirement () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAAuthenticationRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAAuthenticationRequirement (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("biometryRequirementWithFallback:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement GetBiometryRequirement (LABiometryFallbackRequirement fallback)
+ {
+ var fallback__handle__ = fallback!.GetNonNullHandle (nameof (fallback));
+ return Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (class_ptr, selBiometryRequirementWithFallback_Handle, fallback__handle__))!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LAAuthenticationRequirement BiometryCurrentSetRequirement {
+ [Export ("biometryCurrentSetRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selBiometryCurrentSetRequirementHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LAAuthenticationRequirement BiometryRequirement {
+ [Export ("biometryRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selBiometryRequirementHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LAAuthenticationRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selDefaultRequirementHandle))!;
+ return ret!;
+ }
+ }
+ } /* class LAAuthenticationRequirement */
+}
diff --git a/new/dotnet/macos/generated-sources/LocalAuthentication/LABiometryFallbackRequirement.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LABiometryFallbackRequirement.g.cs
new file mode 100644
index 0000000..a6e1341
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LABiometryFallbackRequirement.g.cs
@@ -0,0 +1,121 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LABiometryFallbackRequirement", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LABiometryFallbackRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDefaultRequirement = "defaultRequirement";
+ static readonly NativeHandle selDefaultRequirementHandle = Selector.GetHandle ("defaultRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDevicePasscodeRequirement = "devicePasscodeRequirement";
+ static readonly NativeHandle selDevicePasscodeRequirementHandle = Selector.GetHandle ("devicePasscodeRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LABiometryFallbackRequirement");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LABiometryFallbackRequirement () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LABiometryFallbackRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LABiometryFallbackRequirement (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LABiometryFallbackRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selDefaultRequirementHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LABiometryFallbackRequirement DevicePasscodeRequirement {
+ [Export ("devicePasscodeRequirement")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selDevicePasscodeRequirementHandle))!;
+ return ret!;
+ }
+ }
+ } /* class LABiometryFallbackRequirement */
+}
diff --git a/old/dotnet/macos/generated-sources/LocalAuthentication/LABiometryType.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LABiometryType.g.cs
index 81cd255..1aff7c4 100644
--- a/old/dotnet/macos/generated-sources/LocalAuthentication/LABiometryType.g.cs
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LABiometryType.g.cs
@@ -46,12 +46,14 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("macos10.13.2")]
[SupportedOSPlatform ("ios11.0")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst11.0")]
[Native]
public enum LABiometryType : long {
None = 0,
TouchId = 1,
[SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios11.0")]
[SupportedOSPlatform ("maccatalyst11.0")]
FaceId = 2,
diff --git a/old/dotnet/macos/generated-sources/LocalAuthentication/LAContext.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LAContext.g.cs
index e46c17d..b6c95b1 100644
--- a/old/dotnet/macos/generated-sources/LocalAuthentication/LAContext.g.cs
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LAContext.g.cs
@@ -47,6 +47,7 @@ namespace LocalAuthentication {
[Register("LAContext", true)]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
public unsafe partial class LAContext : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
@@ -137,6 +138,7 @@ namespace LocalAuthentication {
}
[Export ("canEvaluatePolicy:error:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -156,6 +158,7 @@ namespace LocalAuthentication {
[Export ("evaluateAccessControl:operation:localizedReason:reply:")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public unsafe virtual void EvaluateAccessControl (global::Security.SecAccessControl accessControl, LAAccessControlOperation operation, string localizedReason, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity2V13))]global::System.Action<bool, NSError> reply)
@@ -180,6 +183,7 @@ namespace LocalAuthentication {
block_ptr_reply->CleanupBlock ();
}
[Export ("evaluatePolicy:localizedReason:reply:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -204,6 +208,7 @@ namespace LocalAuthentication {
CFString.ReleaseNative (nslocalizedReason);
block_ptr_reply->CleanupBlock ();
}
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -219,6 +224,7 @@ namespace LocalAuthentication {
[Export ("invalidate")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual void Invalidate ()
@@ -232,6 +238,7 @@ namespace LocalAuthentication {
[Export ("isCredentialSet:")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool IsCredentialSet (LACredentialType type)
@@ -245,6 +252,7 @@ namespace LocalAuthentication {
[Export ("setCredential:type:")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
public virtual bool SetCredentialType (NSData? credential, LACredentialType type)
@@ -259,9 +267,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("macos10.13.2")]
[SupportedOSPlatform ("ios11.0")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst11.0")]
public virtual LABiometryType BiometryType {
[Export ("biometryType")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -278,9 +288,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
public virtual NSData? EvaluatedPolicyDomainState {
[Export ("evaluatedPolicyDomainState")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -328,9 +340,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios10.0")]
[SupportedOSPlatform ("macos10.12")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst10.0")]
public virtual string? LocalizedCancelTitle {
[Export ("localizedCancelTitle")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -342,6 +356,7 @@ namespace LocalAuthentication {
}
}
[Export ("setLocalizedCancelTitle:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -356,11 +371,13 @@ namespace LocalAuthentication {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
public virtual string? LocalizedFallbackTitle {
[Export ("localizedFallbackTitle")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -372,6 +389,7 @@ namespace LocalAuthentication {
}
}
[Export ("setLocalizedFallbackTitle:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -431,6 +449,7 @@ namespace LocalAuthentication {
[Advice ("Starting with macos10.11.")]
#endif
[UnsupportedOSPlatform ("macos10.11")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.3")]
#if __MACCATALYST__ && !__IOS__
[Advice ("Starting with maccatalyst9.0.")]
@@ -438,6 +457,7 @@ namespace LocalAuthentication {
[UnsupportedOSPlatform ("maccatalyst9.0")]
public virtual NSNumber? MaxBiometryFailures {
[Export ("maxBiometryFailures")]
+ [UnsupportedOSPlatform ("tvos")]
#if __IOS__
[Advice ("Starting with ios9.0.")]
#endif
@@ -463,6 +483,7 @@ namespace LocalAuthentication {
return ret!;
}
[Export ("setMaxBiometryFailures:")]
+ [UnsupportedOSPlatform ("tvos")]
#if __IOS__
[Advice ("Starting with ios9.0.")]
#endif
@@ -490,9 +511,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.12.4")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
public virtual double TouchIdAuthenticationAllowableReuseDuration {
[Export ("touchIDAuthenticationAllowableReuseDuration")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -504,6 +527,7 @@ namespace LocalAuthentication {
}
}
[Export ("setTouchIDAuthenticationAllowableReuseDuration:")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
[SupportedOSPlatform ("maccatalyst8.0")]
@@ -518,10 +542,12 @@ namespace LocalAuthentication {
[Field ("LATouchIDAuthenticationMaximumAllowableReuseDuration", "LocalAuthentication")]
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.12.4")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
public static double TouchIdAuthenticationMaximumAllowableReuseDuration {
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.12.4")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst9.0")]
get {
return Dlfcn.GetDouble (Libraries.LocalAuthentication.Handle, "LATouchIDAuthenticationMaximumAllowableReuseDuration");
diff --git a/old/dotnet/macos/generated-sources/LocalAuthentication/LACredentialType.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LACredentialType.g.cs
index 7269f48..4ecf84b 100644
--- a/old/dotnet/macos/generated-sources/LocalAuthentication/LACredentialType.g.cs
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LACredentialType.g.cs
@@ -46,8 +46,8 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios9.0")]
[SupportedOSPlatform ("macos10.11")]
- [SupportedOSPlatform ("maccatalyst9.0")]
[UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("maccatalyst9.0")]
[Native]
public enum LACredentialType : long {
ApplicationPassword = 0,
diff --git a/new/dotnet/macos/generated-sources/LocalAuthentication/LAPersistedRight.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LAPersistedRight.g.cs
new file mode 100644
index 0000000..9ecb978
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LAPersistedRight.g.cs
@@ -0,0 +1,117 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPersistedRight", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAPersistedRight : LARight {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selKey = "key";
+ static readonly NativeHandle selKeyHandle = Selector.GetHandle ("key");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSecret = "secret";
+ static readonly NativeHandle selSecretHandle = Selector.GetHandle ("secret");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAPersistedRight");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPersistedRight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPersistedRight (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LAPrivateKey Key {
+ [Export ("key")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LAPrivateKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selKeyHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selKeyHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LASecret Secret {
+ [Export ("secret")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LASecret? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selSecretHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selSecretHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class LAPersistedRight */
+}
diff --git a/old/dotnet/macos/generated-sources/LocalAuthentication/LAPolicy.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LAPolicy.g.cs
index ad7aa45..c16ce87 100644
--- a/old/dotnet/macos/generated-sources/LocalAuthentication/LAPolicy.g.cs
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LAPolicy.g.cs
@@ -46,21 +46,36 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
[Native]
public enum LAPolicy : long {
[SupportedOSPlatform ("macos10.12.2")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("maccatalyst8.0")]
DeviceOwnerAuthenticationWithBiometrics = 1,
DeviceOwnerAuthentication = 2,
[UnsupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
DeviceOwnerAuthenticationWithWatch = 3,
[UnsupportedOSPlatform ("ios")]
[SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ DeviceOwnerAuthenticationWithBiometricsOrWatch = 4,
+ [UnsupportedOSPlatform ("ios")]
+ [SupportedOSPlatform ("macos10.15")]
+ [UnsupportedOSPlatform ("tvos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [Obsolete ("Use DeviceOwnerAuthenticationWithBiometricsOrWatch enum value instead.", false)]
OwnerAuthenticationWithBiometricsOrWatch = 4,
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("ios")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ DeviceOwnerAuthenticationWithWristDetection = 5,
}
}
diff --git a/new/dotnet/macos/generated-sources/LocalAuthentication/LAPrivateKey.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LAPrivateKey.g.cs
new file mode 100644
index 0000000..98753de
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LAPrivateKey.g.cs
@@ -0,0 +1,271 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPrivateKey", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAPrivateKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanDecryptUsingSecKeyAlgorithm_ = "canDecryptUsingSecKeyAlgorithm:";
+ static readonly NativeHandle selCanDecryptUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canDecryptUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanExchangeKeysUsingSecKeyAlgorithm_ = "canExchangeKeysUsingSecKeyAlgorithm:";
+ static readonly NativeHandle selCanExchangeKeysUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canExchangeKeysUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanSignUsingSecKeyAlgorithm_ = "canSignUsingSecKeyAlgorithm:";
+ static readonly NativeHandle selCanSignUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canSignUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDecryptData_SecKeyAlgorithm_Completion_ = "decryptData:secKeyAlgorithm:completion:";
+ static readonly NativeHandle selDecryptData_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("decryptData:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_ = "exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:";
+ static readonly NativeHandle selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_Handle = Selector.GetHandle ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPublicKey = "publicKey";
+ static readonly NativeHandle selPublicKeyHandle = Selector.GetHandle ("publicKey");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSignData_SecKeyAlgorithm_Completion_ = "signData:secKeyAlgorithm:completion:";
+ static readonly NativeHandle selSignData_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("signData:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAPrivateKey");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPrivateKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPrivateKey (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("canDecryptUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanDecrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanDecryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanDecryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("canExchangeKeysUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanExchangeKeys (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanExchangeKeysUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanExchangeKeysUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("canSignUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanSign (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanSignUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanSignUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("decryptData:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Decrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle (this.Handle, selDecryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle (this.SuperHandle, selDecryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> DecryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Decrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExchangeKeys (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var publicKey__handle__ = publicKey!.GetNonNullHandle (nameof (publicKey));
+ var parameters__handle__ = parameters!.GetNonNullHandle (nameof (parameters));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle_NativeHandle (this.Handle, selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_Handle, publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle_NativeHandle (this.SuperHandle, selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_Handle, publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExchangeKeysAsync (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExchangeKeys(publicKey, algorithm, parameters, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("signData:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Sign (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle (this.Handle, selSignData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle (this.SuperHandle, selSignData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> SignAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Sign(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LAPublicKey PublicKey {
+ [Export ("publicKey")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LAPublicKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, selPublicKeyHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, selPublicKeyHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class LAPrivateKey */
+}
diff --git a/new/dotnet/macos/generated-sources/LocalAuthentication/LAPublicKey.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LAPublicKey.g.cs
new file mode 100644
index 0000000..ab5aaed
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LAPublicKey.g.cs
@@ -0,0 +1,229 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPublicKey", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LAPublicKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanEncryptUsingSecKeyAlgorithm_ = "canEncryptUsingSecKeyAlgorithm:";
+ static readonly NativeHandle selCanEncryptUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canEncryptUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanVerifyUsingSecKeyAlgorithm_ = "canVerifyUsingSecKeyAlgorithm:";
+ static readonly NativeHandle selCanVerifyUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canVerifyUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEncryptData_SecKeyAlgorithm_Completion_ = "encryptData:secKeyAlgorithm:completion:";
+ static readonly NativeHandle selEncryptData_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("encryptData:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selExportBytesWithCompletion_ = "exportBytesWithCompletion:";
+ static readonly NativeHandle selExportBytesWithCompletion_Handle = Selector.GetHandle ("exportBytesWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selVerifyData_Signature_SecKeyAlgorithm_Completion_ = "verifyData:signature:secKeyAlgorithm:completion:";
+ static readonly NativeHandle selVerifyData_Signature_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("verifyData:signature:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LAPublicKey");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPublicKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPublicKey (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("canEncryptUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanEncrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanEncryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanEncryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("canVerifyUsingSecKeyAlgorithm:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanVerify (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanVerifyUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanVerifyUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("encryptData:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Encrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_int_NativeHandle (this.Handle, selEncryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_int_NativeHandle (this.SuperHandle, selEncryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> EncryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Encrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exportBytesWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExportBytes ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selExportBytesWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selExportBytesWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExportBytesAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExportBytes((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("verifyData:signature:secKeyAlgorithm:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Verify (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyVerifyDataCompletionHandler))]LAPublicKeyVerifyDataCompletionHandler handler)
+ {
+ var signedData__handle__ = signedData!.GetNonNullHandle (nameof (signedData));
+ var signature__handle__ = signature!.GetNonNullHandle (nameof (signature));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyVerifyDataCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_int_NativeHandle (this.Handle, selVerifyData_Signature_SecKeyAlgorithm_Completion_Handle, signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle_int_NativeHandle (this.SuperHandle, selVerifyData_Signature_SecKeyAlgorithm_Completion_Handle, signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task VerifyAsync (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Verify(signedData, signature, algorithm, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class LAPublicKey */
+}
diff --git a/new/dotnet/macos/generated-sources/LocalAuthentication/LARight.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LARight.g.cs
new file mode 100644
index 0000000..cca5bd2
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LARight.g.cs
@@ -0,0 +1,285 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARight", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LARight : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAuthorizeWithLocalizedReason_Completion_ = "authorizeWithLocalizedReason:completion:";
+ static readonly NativeHandle selAuthorizeWithLocalizedReason_Completion_Handle = Selector.GetHandle ("authorizeWithLocalizedReason:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCheckCanAuthorizeWithCompletion_ = "checkCanAuthorizeWithCompletion:";
+ static readonly NativeHandle selCheckCanAuthorizeWithCompletion_Handle = Selector.GetHandle ("checkCanAuthorizeWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDeauthorizeWithCompletion_ = "deauthorizeWithCompletion:";
+ static readonly NativeHandle selDeauthorizeWithCompletion_Handle = Selector.GetHandle ("deauthorizeWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithRequirement_ = "initWithRequirement:";
+ static readonly NativeHandle selInitWithRequirement_Handle = Selector.GetHandle ("initWithRequirement:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetTag_ = "setTag:";
+ static readonly NativeHandle selSetTag_Handle = Selector.GetHandle ("setTag:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selState = "state";
+ static readonly NativeHandle selStateHandle = Selector.GetHandle ("state");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selTag = "tag";
+ static readonly NativeHandle selTagHandle = Selector.GetHandle ("tag");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LARight");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LARight () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARight (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithRequirement:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public LARight (LAAuthenticationRequirement requirement)
+ : base (NSObjectFlag.Empty)
+ {
+ var requirement__handle__ = requirement!.GetNonNullHandle (nameof (requirement));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle (this.Handle, selInitWithRequirement_Handle, requirement__handle__), "initWithRequirement:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle (this.SuperHandle, selInitWithRequirement_Handle, requirement__handle__), "initWithRequirement:");
+ }
+ }
+ [Export ("authorizeWithLocalizedReason:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Authorize (string localizedReason, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ if (localizedReason is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (localizedReason));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nslocalizedReason = CFString.CreateNative (localizedReason);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, selAuthorizeWithLocalizedReason_Completion_Handle, nslocalizedReason, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, selAuthorizeWithLocalizedReason_Completion_Handle, nslocalizedReason, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nslocalizedReason);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task AuthorizeAsync (string localizedReason)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Authorize(localizedReason, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("checkCanAuthorizeWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void CheckCanAuthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selCheckCanAuthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selCheckCanAuthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task CheckCanAuthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ CheckCanAuthorize((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("deauthorizeWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Deauthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDAction))]global::System.Action handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDAction.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selDeauthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selDeauthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task DeauthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Deauthorize(() => {
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual LARightState State {
+ [Export ("state")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LARightState ret;
+ if (IsDirectBinding) {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selStateHandle);
+ } else {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selStateHandle);
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public virtual nint Tag {
+ [Export ("tag")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selTagHandle);
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selTagHandle);
+ }
+ }
+ [Export ("setTag:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetTag_Handle, value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetTag_Handle, value);
+ }
+ }
+ }
+ } /* class LARight */
+}
diff --git a/new/dotnet/macos/generated-sources/LocalAuthentication/LARightState.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LARightState.g.cs
new file mode 100644
index 0000000..b90643c
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LARightState.g.cs
@@ -0,0 +1,58 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ [Native]
+ public enum LARightState : long {
+ Unknown = 0,
+ Authorizing = 1,
+ Authorized = 2,
+ NotAuthorized = 3,
+ }
+}
diff --git a/new/dotnet/macos/generated-sources/LocalAuthentication/LARightStore.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LARightStore.g.cs
new file mode 100644
index 0000000..8d8cd1e
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LARightStore.g.cs
@@ -0,0 +1,355 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARightStore", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LARightStore : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRemoveAllRightsWithCompletion_ = "removeAllRightsWithCompletion:";
+ static readonly NativeHandle selRemoveAllRightsWithCompletion_Handle = Selector.GetHandle ("removeAllRightsWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRemoveRight_Completion_ = "removeRight:completion:";
+ static readonly NativeHandle selRemoveRight_Completion_Handle = Selector.GetHandle ("removeRight:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRemoveRightForIdentifier_Completion_ = "removeRightForIdentifier:completion:";
+ static readonly NativeHandle selRemoveRightForIdentifier_Completion_Handle = Selector.GetHandle ("removeRightForIdentifier:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRightForIdentifier_Completion_ = "rightForIdentifier:completion:";
+ static readonly NativeHandle selRightForIdentifier_Completion_Handle = Selector.GetHandle ("rightForIdentifier:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSaveRight_Identifier_Completion_ = "saveRight:identifier:completion:";
+ static readonly NativeHandle selSaveRight_Identifier_Completion_Handle = Selector.GetHandle ("saveRight:identifier:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSaveRight_Identifier_Secret_Completion_ = "saveRight:identifier:secret:completion:";
+ static readonly NativeHandle selSaveRight_Identifier_Secret_Completion_Handle = Selector.GetHandle ("saveRight:identifier:secret:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSharedStore = "sharedStore";
+ static readonly NativeHandle selSharedStoreHandle = Selector.GetHandle ("sharedStore");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LARightStore");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARightStore (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARightStore (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("rightForIdentifier:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Get (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, selRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, selRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> GetAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Get(identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRight:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (LAPersistedRight right, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, selRemoveRight_Completion_Handle, right__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, selRemoveRight_Completion_Handle, right__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (LAPersistedRight right)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(right, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRightForIdentifier:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle (this.Handle, selRemoveRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle (this.SuperHandle, selRemoveRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(identifier, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeAllRightsWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void RemoveAll ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selRemoveAllRightsWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selRemoveAllRightsWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAllAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ RemoveAll((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle (this.Handle, selSaveRight_Identifier_Completion_Handle, right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, selSaveRight_Identifier_Completion_Handle, right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:secret:completion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, NSData secret, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var secret__handle__ = secret!.GetNonNullHandle (nameof (secret));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle_NativeHandle_NativeHandle_NativeHandle (this.Handle, selSaveRight_Identifier_Secret_Completion_Handle, right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle_NativeHandle_NativeHandle_NativeHandle (this.SuperHandle, selSaveRight_Identifier_Secret_Completion_Handle, right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier, NSData secret)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, secret, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ public static LARightStore SharedStore {
+ [Export ("sharedStore")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ get {
+ LARightStore? ret;
+ ret = Runtime.GetNSObject<LARightStore> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (class_ptr, selSharedStoreHandle))!;
+ return ret!;
+ }
+ }
+ } /* class LARightStore */
+}
diff --git a/new/dotnet/macos/generated-sources/LocalAuthentication/LASecret.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LASecret.g.cs
new file mode 100644
index 0000000..88c48ca
--- /dev/null
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LASecret.g.cs
@@ -0,0 +1,110 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LASecret", true)]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class LASecret : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selLoadDataWithCompletion_ = "loadDataWithCompletion:";
+ static readonly NativeHandle selLoadDataWithCompletion_Handle = Selector.GetHandle ("loadDataWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly NativeHandle class_ptr = Class.GetHandle ("LASecret");
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LASecret (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LASecret (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("loadDataWithCompletion:")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void LoadData ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLASecretCompletionHandler))]LASecretCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLASecretCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, selLoadDataWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, selLoadDataWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("macos13.0")]
+ [SupportedOSPlatform ("ios16.0")]
+ [SupportedOSPlatform ("maccatalyst16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> LoadDataAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ LoadData((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ } /* class LASecret */
+}
diff --git a/old/dotnet/macos/generated-sources/LocalAuthentication/LAStatus.g.cs b/new/dotnet/macos/generated-sources/LocalAuthentication/LAStatus.g.cs
index d102a8f..27f9580 100644
--- a/old/dotnet/macos/generated-sources/LocalAuthentication/LAStatus.g.cs
+++ b/new/dotnet/macos/generated-sources/LocalAuthentication/LAStatus.g.cs
@@ -46,6 +46,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
[Native ("LAError")]
public enum LAStatus : long {
@@ -58,32 +59,45 @@ namespace LocalAuthentication {
AppCancel = -9,
InvalidContext = -10,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
WatchNotAvailable = -11,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
BiometryNotPaired = -12,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
BiometryDisconnected = -13,
[UnsupportedOSPlatform ("ios")]
- [UnsupportedOSPlatform ("tvos")]
[UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("macos10.10")]
InvalidDimension = -14,
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("macos10.10")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
BiometryNotAvailable = -6,
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("macos10.10")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
BiometryNotEnrolled = -7,
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios8.0")]
+ [SupportedOSPlatform ("macos10.10")]
+ [SupportedOSPlatform ("maccatalyst8.0")]
BiometryLockout = -8,
NotInteractive = -1004,
}
[SupportedOSPlatform ("ios8.0")]
[SupportedOSPlatform ("macos10.10")]
+ [UnsupportedOSPlatform ("tvos")]
[SupportedOSPlatform ("maccatalyst8.0")]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static public partial class LAStatusExtensions {
diff --git a/old/dotnet/macos/generated-sources/ObjCRuntime/Messaging.g.cs b/new/dotnet/macos/generated-sources/ObjCRuntime/Messaging.g.cs
index dab0eb2..0b043da 100644
--- a/old/dotnet/macos/generated-sources/ObjCRuntime/Messaging.g.cs
+++ b/new/dotnet/macos/generated-sources/ObjCRuntime/Messaging.g.cs
@@ -5426,6 +5426,24 @@ namespace ObjCRuntime {
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static void void_objc_msgSendSuper_NativeHandle_IntPtr_NativeHandle_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, IntPtr arg2, NativeHandle arg3, NativeHandle arg4);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSend_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSendSuper_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_NativeHandle_int_NativeHandle_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_NativeHandle_int_NativeHandle_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, int arg2, NativeHandle arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_NativeHandle_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, NativeHandle arg2, int arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_NativeHandle_NativeHandle_int_NativeHandle (IntPtr receiver, IntPtr selector, NativeHandle arg1, NativeHandle arg2, int arg3, NativeHandle arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
public extern static NativeHandle NativeHandle_objc_msgSend_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static NativeHandle NativeHandle_objc_msgSendSuper_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
diff --git a/old/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs b/new/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
index 0cf8ff4..2c15a44 100644
--- a/old/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
+++ b/new/dotnet/macos/generated-sources/ObjCRuntime/Trampolines.g.cs
@@ -10106,6 +10106,297 @@ namespace ObjCRuntime {
}
} /* class NIDLAContextReplyHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPrivateKeyCompletionHandler))]
+ internal delegate void DLAPrivateKeyCompletionHandler (IntPtr block, NativeHandle data, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPrivateKeyCompletionHandler {
+ static internal readonly DLAPrivateKeyCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLAPrivateKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle data, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPrivateKeyCompletionHandler */
+ internal sealed class NIDLAPrivateKeyCompletionHandler : TrampolineBlockBase {
+ DLAPrivateKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPrivateKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPrivateKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPrivateKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPrivateKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPrivateKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyCompletionHandler))]
+ internal delegate void DLAPublicKeyCompletionHandler (IntPtr block, NativeHandle data, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyCompletionHandler {
+ static internal readonly DLAPublicKeyCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLAPublicKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle data, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyCompletionHandler */
+ internal sealed class NIDLAPublicKeyCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPublicKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler))]
+ internal delegate void DLAPublicKeyVerifyDataCompletionHandler (IntPtr block, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyVerifyDataCompletionHandler {
+ static internal readonly DLAPublicKeyVerifyDataCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLAPublicKeyVerifyDataCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyVerifyDataCompletionHandler */
+ internal sealed class NIDLAPublicKeyVerifyDataCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyVerifyDataCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyVerifyDataCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyVerifyDataCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyVerifyDataCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLAPublicKeyVerifyDataCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightAuthorizeCompletionHandler))]
+ internal delegate void DLARightAuthorizeCompletionHandler (IntPtr block, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightAuthorizeCompletionHandler {
+ static internal readonly DLARightAuthorizeCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLARightAuthorizeCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightAuthorizeCompletionHandler */
+ internal sealed class NIDLARightAuthorizeCompletionHandler : TrampolineBlockBase {
+ DLARightAuthorizeCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightAuthorizeCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightAuthorizeCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightAuthorizeCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightAuthorizeCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightAuthorizeCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreCompletionHandler))]
+ internal delegate void DLARightStoreCompletionHandler (IntPtr block, NativeHandle right, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreCompletionHandler {
+ static internal readonly DLARightStoreCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLARightStoreCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle right, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<LocalAuthentication.LAPersistedRight> (right)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreCompletionHandler */
+ internal sealed class NIDLARightStoreCompletionHandler : TrampolineBlockBase {
+ DLARightStoreCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::LocalAuthentication.LAPersistedRight? right, NSError? error)
+ {
+ var right__handle__ = right.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, right__handle__, error__handle__);
+ }
+ } /* class NIDLARightStoreCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler))]
+ internal delegate void DLARightStoreRemoveRightCompletionHandler (IntPtr block, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreRemoveRightCompletionHandler {
+ static internal readonly DLARightStoreRemoveRightCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLARightStoreRemoveRightCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreRemoveRightCompletionHandler */
+ internal sealed class NIDLARightStoreRemoveRightCompletionHandler : TrampolineBlockBase {
+ DLARightStoreRemoveRightCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreRemoveRightCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreRemoveRightCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreRemoveRightCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightStoreRemoveRightCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LASecretCompletionHandler))]
+ internal delegate void DLASecretCompletionHandler (IntPtr block, NativeHandle data, NativeHandle error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLASecretCompletionHandler {
+ static internal readonly DLASecretCompletionHandler Handler = Invoke;
+ [Preserve (Conditional = true)]
+ [global::System.Diagnostics.CodeAnalysis.DynamicDependency ("Handler")]
+ [MonoPInvokeCallback (typeof (DLASecretCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, NativeHandle data, NativeHandle error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLASecretCompletionHandler */
+ internal sealed class NIDLASecretCompletionHandler : TrampolineBlockBase {
+ DLASecretCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLASecretCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLASecretCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LASecretCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLASecretCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLASecretCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::MLCompute.MLCGraphCompletionHandler))]
internal delegate void DMLCGraphCompletionHandler (IntPtr block, NativeHandle resultTensor, NativeHandle error, double executionTime);
//
diff --git a/old/dotnet/macos/generated-sources/SupportDelegates.g.cs b/new/dotnet/macos/generated-sources/SupportDelegates.g.cs
index c87c0f9..077da8c 100644
--- a/old/dotnet/macos/generated-sources/SupportDelegates.g.cs
+++ b/new/dotnet/macos/generated-sources/SupportDelegates.g.cs
@@ -474,6 +474,13 @@ namespace JavaScriptCore {
namespace LocalAuthentication {
#nullable enable
public delegate void LAContextReplyHandler (bool success, NSError error);
+ public delegate void LAPrivateKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyVerifyDataCompletionHandler (NSError? error);
+ public delegate void LARightAuthorizeCompletionHandler (NSError? error);
+ public delegate void LARightStoreCompletionHandler (LocalAuthentication.LAPersistedRight? right, NSError? error);
+ public delegate void LARightStoreRemoveRightCompletionHandler (NSError? error);
+ public delegate void LASecretCompletionHandler (NSData? data, NSError? error);
}
namespace MLCompute {
#nullable enable
diff --git a/old/generator-frameworks.g.cs b/new/generator-frameworks.g.cs
index 4f62d76..a279c96 100644
--- a/old/generator-frameworks.g.cs
+++ b/new/generator-frameworks.g.cs
@@ -3,7 +3,7 @@ using System.Collections.Generic;
partial class Frameworks {
internal readonly HashSet<string> iosframeworks = new HashSet<string> {"Accessibility", "Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "DeviceCheck", "Foundation", "GameKit", "NaturalLanguage", "Network", "OSLog", "SceneKit", "ShazamKit", "SoundAnalysis", "SpriteKit", "StoreKit", "UniformTypeIdentifiers", "AVKit", "Accounts", "AdServices", "AdSupport", "AddressBook", "AddressBookUI", "AppClip", "AppTrackingTransparency", "ARKit", "AssetsLibrary", "AudioToolbox", "AudioUnit", "AutomaticAssessmentConfiguration", "BackgroundAssets", "BackgroundTasks", "BusinessChat", "CallKit", "CarPlay", "CFNetwork", "Chip", "ClassKit", "CloudKit", "Contacts", "ContactsUI", "CoreAnimation", "CoreAudioKit", "CoreGraphics", "CoreHaptics", "CoreImage", "CoreLocation", "CoreLocationUI", "CoreMIDI", "CoreMotion", "CoreNFC", "CoreSpotlight", "CoreTelephony", "CoreText", "EventKit", "EventKitUI", "ExternalAccessory", "FileProvider", "FileProviderUI", "GLKit", "GameController", "GameplayKit", "HealthKit", "HealthKitUI", "HomeKit", "IdentityLookup", "IdentityLookupUI", "ImageIO", "Intents", "IntentsUI", "IOSurface", "JavaScriptCore", "LinkPresentation", "LocalAuthentication", "MapKit", "MediaAccessibility", "MediaPlayer", "MediaSetup", "MediaToolbox", "Messages", "MessageUI", "Metal", "MetalKit", "MetalPerformanceShaders", "MetalPerformanceShadersGraph", "MetricKit", "MLCompute", "MobileCoreServices", "ModelIO", "MultipeerConnectivity", "NearbyInteraction", "NetworkExtension", "NewsstandKit", "NotificationCenter", "OpenGLES", "PassKit", "PdfKit", "PencilKit", "Phase", "Photos", "PhotosUI", "PushKit", "PushToTalk", "QuickLook", "QuickLookThumbnailing", "ReplayKit", "SafariServices", "ScreenTime", "Security", "SensorKit", "SharedWithYou", "SharedWithYouCore", "Social", "Speech", "SystemConfiguration", "ThreadNetwork", "Twitter", "UIKit", "XKit", "UserNotifications", "UserNotificationsUI", "VideoToolbox", "VideoSubscriberAccount", "Vision", "VisionKit", "WatchConnectivity", "WatchKit", "WKWebKit", "iAd"};
internal readonly HashSet<string> macosframeworks = new HashSet<string> {"Accessibility", "Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "DeviceCheck", "Foundation", "GameKit", "NaturalLanguage", "Network", "OSLog", "SceneKit", "ShazamKit", "SoundAnalysis", "SpriteKit", "StoreKit", "UniformTypeIdentifiers", "Accounts", "AdServices", "AdSupport", "AppKit", "XKit", "AppTrackingTransparency", "AudioToolbox", "AudioUnit", "AutomaticAssessmentConfiguration", "AVKit", "BusinessChat", "BackgroundAssets", "CallKit", "CFNetwork", "Chip", "ClassKit", "CloudKit", "Contacts", "ContactsUI", "CoreAnimation", "CoreAudioKit", "CoreGraphics", "CoreImage", "CoreLocation", "CoreMidi", "CoreMotion", "CoreServices", "CoreSpotlight", "CoreText", "CoreWlan", "EventKit", "ExecutionPolicy", "ExtensionKit", "ExternalAccessory", "FileProvider", "FileProviderUI", "FinderSync", "GameController", "GameplayKit", "GLKit", "HealthKit", "ImageIO", "ImageCaptureCore", "ImageKit", "Intents", "IntentsUI", "IOSurface", "iTunesLibrary", "JavaScriptCore", "LinkPresentation", "LocalAuthentication", "LocalAuthenticationEmbeddedUI", "MailKit", "MapKit", "MediaAccessibility", "MediaLibrary", "MediaPlayer", "MediaToolbox", "Metal", "MetalKit", "MetalPerformanceShaders", "MetalPerformanceShadersGraph", "MetricKit", "MLCompute", "MobileCoreServices", "ModelIO", "MultipeerConnectivity", "NearbyInteraction", "NetworkExtension", "NotificationCenter", "OpenGL", "PassKit", "PdfKit", "PencilKit", "Phase", "Photos", "PhotosUI", "PrintCore", "PushKit", "QTKit", "QuartzComposer", "QuickLook", "QuickLookThumbnailing", "QuickLookUI", "ReplayKit", "SafariServices", "ScreenCaptureKit", "ScreenTime", "ScriptingBridge", "SearchKit", "Security", "SharedWithYouCore", "Social", "Speech", "SystemConfiguration", "UserNotifications", "UserNotificationsUI", "VideoSubscriberAccount", "VideoToolbox", "Vision", "WebKit", "WKWebKit"};
- internal readonly HashSet<string> watchosframeworks = new HashSet<string> {"Accessibility", "Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "DeviceCheck", "Foundation", "GameKit", "NaturalLanguage", "Network", "OSLog", "SceneKit", "ShazamKit", "SoundAnalysis", "SpriteKit", "StoreKit", "UniformTypeIdentifiers", "CallKit", "Chip", "ClockKit", "CloudKit", "Contacts", "CoreGraphics", "CoreLocation", "CoreMotion", "CoreText", "EventKit", "HealthKit", "HomeKit", "ImageIO", "Intents", "MapKit", "MediaPlayer", "MobileCoreServices", "NearbyInteraction", "PassKit", "PushKit", "Security", "UIKit", "XKit", "UserNotifications", "WatchConnectivity", "WatchKit"};
+ internal readonly HashSet<string> watchosframeworks = new HashSet<string> {"Accessibility", "Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "DeviceCheck", "Foundation", "GameKit", "NaturalLanguage", "Network", "OSLog", "SceneKit", "ShazamKit", "SoundAnalysis", "SpriteKit", "StoreKit", "UniformTypeIdentifiers", "CallKit", "Chip", "ClockKit", "CloudKit", "Contacts", "CoreGraphics", "CoreLocation", "CoreMotion", "CoreText", "EventKit", "HealthKit", "HomeKit", "ImageIO", "Intents", "LocalAuthentication", "MapKit", "MediaPlayer", "MobileCoreServices", "NearbyInteraction", "PassKit", "PushKit", "Security", "UIKit", "XKit", "UserNotifications", "WatchConnectivity", "WatchKit"};
internal readonly HashSet<string> tvosframeworks = new HashSet<string> {"Accessibility", "Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "DeviceCheck", "Foundation", "GameKit", "NaturalLanguage", "Network", "OSLog", "SceneKit", "ShazamKit", "SoundAnalysis", "SpriteKit", "StoreKit", "UniformTypeIdentifiers", "AVKit", "AdSupport", "AppTrackingTransparency", "AudioToolbox", "AudioUnit", "BackgroundTasks", "CFNetwork", "Chip", "CloudKit", "CoreAnimation", "CoreGraphics", "CoreHaptics", "CoreImage", "CoreLocation", "CoreSpotlight", "CoreText", "ExternalAccessory", "GLKit", "GameController", "GameplayKit", "HomeKit", "ImageIO", "Intents", "IOSurface", "JavaScriptCore", "LinkPresentation", "MapKit", "MediaAccessibility", "MediaPlayer", "MediaToolbox", "Metal", "MetalKit", "MetalPerformanceShaders", "MetalPerformanceShadersGraph", "MLCompute", "MobileCoreServices", "ModelIO", "MultipeerConnectivity", "OpenGLES", "Photos", "PhotosUI", "ReplayKit", "Security", "SystemConfiguration", "TVMLKit", "TVUIKit", "TVServices", "UIKit", "XKit", "UserNotifications", "VideoSubscriberAccount", "VideoToolbox", "Vision"};
internal readonly HashSet<string> maccatalystframeworks = new HashSet<string> {"Accessibility", "Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "DeviceCheck", "Foundation", "GameKit", "NaturalLanguage", "Network", "OSLog", "SceneKit", "ShazamKit", "SoundAnalysis", "SpriteKit", "StoreKit", "UniformTypeIdentifiers", "AppClip", "AppKit", "AVKit", "Accounts", "AdServices", "AdSupport", "AddressBook", "AppTrackingTransparency", "AudioToolbox", "AudioUnit", "AutomaticAssessmentConfiguration", "BackgroundAssets", "BackgroundTasks", "BusinessChat", "CallKit", "CFNetwork", "ClassKit", "CloudKit", "Contacts", "ContactsUI", "CoreAnimation", "CoreAudioKit", "CoreGraphics", "CoreHaptics", "CoreImage", "CoreLocation", "CoreLocationUI", "CoreMIDI", "CoreMotion", "CoreNFC", "CoreSpotlight", "CoreTelephony", "CoreText", "CoreWlan", "EventKit", "EventKitUI", "ExecutionPolicy", "ExternalAccessory", "FileProvider", "GameController", "GameplayKit", "HealthKit", "HealthKitUI", "HomeKit", "IdentityLookup", "IdentityLookupUI", "ImageIO", "Intents", "IntentsUI", "IOSurface", "JavaScriptCore", "LinkPresentation", "LocalAuthentication", "MapKit", "MediaAccessibility", "MediaPlayer", "MediaToolbox", "Messages", "MessageUI", "Metal", "MetalKit", "MetalPerformanceShaders", "MetalPerformanceShadersGraph", "MetricKit", "MLCompute", "MobileCoreServices", "ModelIO", "MultipeerConnectivity", "NearbyInteraction", "NetworkExtension", "PassKit", "PdfKit", "PencilKit", "Phase", "Photos", "PhotosUI", "PushKit", "QuickLook", "QuickLookThumbnailing", "ReplayKit", "SafariServices", "ScreenTime", "Security", "SensorKit", "SharedWithYou", "SharedWithYouCore", "Social", "Speech", "SystemConfiguration", "UIKit", "XKit", "UserNotifications", "UserNotificationsUI", "VideoToolbox", "Vision", "VisionKit", "WKWebKit"};
bool? _Accelerate;
diff --git a/old/ios/native/LocalAuthentication/LAAccessControlOperation.g.cs b/new/ios/native/LocalAuthentication/LAAccessControlOperation.g.cs
index dbee370..e90f937 100644
--- a/old/ios/native/LocalAuthentication/LAAccessControlOperation.g.cs
+++ b/new/ios/native/LocalAuthentication/LAAccessControlOperation.g.cs
@@ -50,6 +50,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LAAccessControlOperation : long {
CreateItem = 0,
diff --git a/new/ios/native/LocalAuthentication/LAAuthenticationRequirement.g.cs b/new/ios/native/LocalAuthentication/LAAuthenticationRequirement.g.cs
new file mode 100644
index 0000000..a3c879f
--- /dev/null
+++ b/new/ios/native/LocalAuthentication/LAAuthenticationRequirement.g.cs
@@ -0,0 +1,146 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAAuthenticationRequirement", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAAuthenticationRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAAuthenticationRequirement");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LAAuthenticationRequirement () : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAAuthenticationRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAAuthenticationRequirement (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("biometryRequirementWithFallback:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement GetBiometryRequirement (LABiometryFallbackRequirement fallback)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var fallback__handle__ = fallback!.GetNonNullHandle (nameof (fallback));
+ return Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, Selector.GetHandle ("biometryRequirementWithFallback:"), fallback__handle__))!;
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement BiometryCurrentSetRequirement {
+ [Export ("biometryCurrentSetRequirement")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("biometryCurrentSetRequirement")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement BiometryRequirement {
+ [Export ("biometryRequirement")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("biometryRequirement")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("defaultRequirement")))!;
+ return ret!;
+ #endif
+ }
+ }
+ } /* class LAAuthenticationRequirement */
+}
diff --git a/new/ios/native/LocalAuthentication/LABiometryFallbackRequirement.g.cs b/new/ios/native/LocalAuthentication/LABiometryFallbackRequirement.g.cs
new file mode 100644
index 0000000..b2bbb1f
--- /dev/null
+++ b/new/ios/native/LocalAuthentication/LABiometryFallbackRequirement.g.cs
@@ -0,0 +1,122 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LABiometryFallbackRequirement", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LABiometryFallbackRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("LABiometryFallbackRequirement");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LABiometryFallbackRequirement () : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LABiometryFallbackRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LABiometryFallbackRequirement (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LABiometryFallbackRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("defaultRequirement")))!;
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LABiometryFallbackRequirement DevicePasscodeRequirement {
+ [Export ("devicePasscodeRequirement")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("devicePasscodeRequirement")))!;
+ return ret!;
+ #endif
+ }
+ }
+ } /* class LABiometryFallbackRequirement */
+}
diff --git a/old/ios/native/LocalAuthentication/LABiometryType.g.cs b/new/ios/native/LocalAuthentication/LABiometryType.g.cs
index 9d715fd..f6d186b 100644
--- a/old/ios/native/LocalAuthentication/LABiometryType.g.cs
+++ b/new/ios/native/LocalAuthentication/LABiometryType.g.cs
@@ -50,6 +50,8 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.MacOSX, 10,13,2, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LABiometryType : long {
None = 0,
diff --git a/old/ios/native/LocalAuthentication/LAContext.g.cs b/new/ios/native/LocalAuthentication/LAContext.g.cs
index 76d4d36..b374131 100644
--- a/old/ios/native/LocalAuthentication/LAContext.g.cs
+++ b/new/ios/native/LocalAuthentication/LAContext.g.cs
@@ -51,6 +51,7 @@ namespace LocalAuthentication {
[Register("LAContext", true)]
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
public unsafe partial class LAContext : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static readonly IntPtr class_ptr = Class.GetHandle ("LAContext");
@@ -189,9 +190,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.MacOSX, 10,13,2, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public virtual LABiometryType BiometryType {
[Introduced (PlatformName.MacOSX, 10,13,2, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("biometryType")]
get {
#if ARCH_32
@@ -225,13 +228,11 @@ namespace LocalAuthentication {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
public virtual bool InteractionNotAllowed {
- [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("interactionNotAllowed")]
@@ -246,8 +247,7 @@ namespace LocalAuthentication {
}
#endif
}
- [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setInteractionNotAllowed:")]
@@ -266,9 +266,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.iOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public virtual string? LocalizedCancelTitle {
[Introduced (PlatformName.iOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("localizedCancelTitle")]
get {
if (IsDirectBinding) {
@@ -279,6 +281,7 @@ namespace LocalAuthentication {
}
[Introduced (PlatformName.iOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setLocalizedCancelTitle:")]
set {
var nsvalue = CFString.CreateNative (value);
@@ -291,7 +294,9 @@ namespace LocalAuthentication {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public virtual string? LocalizedFallbackTitle {
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("localizedFallbackTitle")]
get {
if (IsDirectBinding) {
@@ -300,6 +305,7 @@ namespace LocalAuthentication {
return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("localizedFallbackTitle")))!;
}
}
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setLocalizedFallbackTitle:")]
set {
var nsvalue = CFString.CreateNative (value);
@@ -313,12 +319,10 @@ namespace LocalAuthentication {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
public virtual string LocalizedReason {
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("localizedReason")]
@@ -334,7 +338,6 @@ namespace LocalAuthentication {
#endif
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setLocalizedReason:")]
@@ -428,9 +431,11 @@ namespace LocalAuthentication {
[Field ("LATouchIDAuthenticationMaximumAllowableReuseDuration", "LocalAuthentication")]
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12,4, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public static double TouchIdAuthenticationMaximumAllowableReuseDuration {
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12,4, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
get {
return Dlfcn.GetDouble (Libraries.LocalAuthentication.Handle, "LATouchIDAuthenticationMaximumAllowableReuseDuration");
}
diff --git a/old/ios/native/LocalAuthentication/LACredentialType.g.cs b/new/ios/native/LocalAuthentication/LACredentialType.g.cs
index 0ca45f8..2d5b57c 100644
--- a/old/ios/native/LocalAuthentication/LACredentialType.g.cs
+++ b/new/ios/native/LocalAuthentication/LACredentialType.g.cs
@@ -51,14 +51,13 @@ namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.WatchOS, 3,0, ObjCRuntime.PlatformArchitecture.All)]
- [Introduced (PlatformName.TvOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LACredentialType : long {
ApplicationPassword = 0,
[Introduced (PlatformName.iOS, 13,4, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15,4, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
SmartCardPin = -3,
}
}
diff --git a/new/ios/native/LocalAuthentication/LAPersistedRight.g.cs b/new/ios/native/LocalAuthentication/LAPersistedRight.g.cs
new file mode 100644
index 0000000..be77ee3
--- /dev/null
+++ b/new/ios/native/LocalAuthentication/LAPersistedRight.g.cs
@@ -0,0 +1,114 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPersistedRight", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAPersistedRight : LARight {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAPersistedRight");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPersistedRight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPersistedRight (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LAPrivateKey Key {
+ [Export ("key")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LAPrivateKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("key")))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("key")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LASecret Secret {
+ [Export ("secret")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LASecret? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("secret")))!;
+ } else {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("secret")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class LAPersistedRight */
+}
diff --git a/old/ios/native/LocalAuthentication/LAPolicy.g.cs b/new/ios/native/LocalAuthentication/LAPolicy.g.cs
index 0f8e32a..89709f8 100644
--- a/old/ios/native/LocalAuthentication/LAPolicy.g.cs
+++ b/new/ios/native/LocalAuthentication/LAPolicy.g.cs
@@ -50,16 +50,30 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LAPolicy : long {
[Introduced (PlatformName.MacOSX, 10,12,2, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
DeviceOwnerAuthenticationWithBiometrics = 1,
DeviceOwnerAuthentication = 2,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
DeviceOwnerAuthenticationWithWatch = 3,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ DeviceOwnerAuthenticationWithBiometricsOrWatch = 4,
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Obsolete ("Use DeviceOwnerAuthenticationWithBiometricsOrWatch enum value instead.", false)]
OwnerAuthenticationWithBiometricsOrWatch = 4,
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ DeviceOwnerAuthenticationWithWristDetection = 5,
}
}
diff --git a/new/ios/native/LocalAuthentication/LAPrivateKey.g.cs b/new/ios/native/LocalAuthentication/LAPrivateKey.g.cs
new file mode 100644
index 0000000..4c12167
--- /dev/null
+++ b/new/ios/native/LocalAuthentication/LAPrivateKey.g.cs
@@ -0,0 +1,245 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPrivateKey", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAPrivateKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAPrivateKey");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPrivateKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPrivateKey (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("canDecryptUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanDecrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canDecryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canDecryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ #endif
+ }
+ [Export ("canExchangeKeysUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanExchangeKeys (global::Security.SecKeyAlgorithm algorithm)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canExchangeKeysUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canExchangeKeysUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ #endif
+ }
+ [Export ("canSignUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanSign (global::Security.SecKeyAlgorithm algorithm)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canSignUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canSignUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ #endif
+ }
+ [Export ("decryptData:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Decrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr (this.Handle, Selector.GetHandle ("decryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr (this.SuperHandle, Selector.GetHandle ("decryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> DecryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Decrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExchangeKeys (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var publicKey__handle__ = publicKey!.GetNonNullHandle (nameof (publicKey));
+ var parameters__handle__ = parameters!.GetNonNullHandle (nameof (parameters));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:"), publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:"), publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExchangeKeysAsync (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExchangeKeys(publicKey, algorithm, parameters, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("signData:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Sign (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr (this.Handle, Selector.GetHandle ("signData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr (this.SuperHandle, Selector.GetHandle ("signData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> SignAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Sign(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LAPublicKey PublicKey {
+ [Export ("publicKey")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LAPublicKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("publicKey")))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("publicKey")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class LAPrivateKey */
+}
diff --git a/new/ios/native/LocalAuthentication/LAPublicKey.g.cs b/new/ios/native/LocalAuthentication/LAPublicKey.g.cs
new file mode 100644
index 0000000..3c873a2
--- /dev/null
+++ b/new/ios/native/LocalAuthentication/LAPublicKey.g.cs
@@ -0,0 +1,213 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPublicKey", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAPublicKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAPublicKey");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPublicKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPublicKey (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("canEncryptUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanEncrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canEncryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canEncryptUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ #endif
+ }
+ [Export ("canVerifyUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanVerify (global::Security.SecKeyAlgorithm algorithm)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, Selector.GetHandle ("canVerifyUsingSecKeyAlgorithm:"), (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, Selector.GetHandle ("canVerifyUsingSecKeyAlgorithm:"), (int)algorithm);
+ }
+ #endif
+ }
+ [Export ("encryptData:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Encrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr (this.Handle, Selector.GetHandle ("encryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr (this.SuperHandle, Selector.GetHandle ("encryptData:secKeyAlgorithm:completion:"), data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> EncryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Encrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exportBytesWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExportBytes ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("exportBytesWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("exportBytesWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExportBytesAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExportBytes((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("verifyData:signature:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Verify (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyVerifyDataCompletionHandler))]LAPublicKeyVerifyDataCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var signedData__handle__ = signedData!.GetNonNullHandle (nameof (signedData));
+ var signature__handle__ = signature!.GetNonNullHandle (nameof (signature));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyVerifyDataCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_int_IntPtr (this.Handle, Selector.GetHandle ("verifyData:signature:secKeyAlgorithm:completion:"), signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_int_IntPtr (this.SuperHandle, Selector.GetHandle ("verifyData:signature:secKeyAlgorithm:completion:"), signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task VerifyAsync (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Verify(signedData, signature, algorithm, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class LAPublicKey */
+}
diff --git a/new/ios/native/LocalAuthentication/LARight.g.cs b/new/ios/native/LocalAuthentication/LARight.g.cs
new file mode 100644
index 0000000..7b86e27
--- /dev/null
+++ b/new/ios/native/LocalAuthentication/LARight.g.cs
@@ -0,0 +1,259 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARight", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LARight : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("LARight");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LARight () : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARight (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithRequirement:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public LARight (LAAuthenticationRequirement requirement)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var requirement__handle__ = requirement!.GetNonNullHandle (nameof (requirement));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithRequirement:"), requirement__handle__), "initWithRequirement:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithRequirement:"), requirement__handle__), "initWithRequirement:");
+ }
+ #endif
+ }
+ [Export ("authorizeWithLocalizedReason:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Authorize (string localizedReason, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (localizedReason is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (localizedReason));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nslocalizedReason = CFString.CreateNative (localizedReason);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("authorizeWithLocalizedReason:completion:"), nslocalizedReason, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("authorizeWithLocalizedReason:completion:"), nslocalizedReason, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nslocalizedReason);
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task AuthorizeAsync (string localizedReason)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Authorize(localizedReason, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("checkCanAuthorizeWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void CheckCanAuthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("checkCanAuthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("checkCanAuthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task CheckCanAuthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ CheckCanAuthorize((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("deauthorizeWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Deauthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDAction))]global::System.Action handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDAction.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("deauthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("deauthorizeWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task DeauthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Deauthorize(() => {
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LARightState State {
+ [Export ("state")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LARightState ret;
+ if (IsDirectBinding) {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("state"));
+ } else {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("state"));
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual nint Tag {
+ [Export ("tag")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("tag"));
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("tag"));
+ }
+ #endif
+ }
+ [Export ("setTag:")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setTag:"), (IntPtr) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setTag:"), (IntPtr) value);
+ }
+ #endif
+ }
+ }
+ } /* class LARight */
+}
diff --git a/new/ios/native/LocalAuthentication/LARightState.g.cs b/new/ios/native/LocalAuthentication/LARightState.g.cs
new file mode 100644
index 0000000..89a6788
--- /dev/null
+++ b/new/ios/native/LocalAuthentication/LARightState.g.cs
@@ -0,0 +1,63 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum LARightState : long {
+ Unknown = 0,
+ Authorizing = 1,
+ Authorized = 2,
+ NotAuthorized = 3,
+ }
+}
diff --git a/new/ios/native/LocalAuthentication/LARightStore.g.cs b/new/ios/native/LocalAuthentication/LARightStore.g.cs
new file mode 100644
index 0000000..0600c9a
--- /dev/null
+++ b/new/ios/native/LocalAuthentication/LARightStore.g.cs
@@ -0,0 +1,317 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARightStore", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LARightStore : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("LARightStore");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARightStore (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARightStore (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("rightForIdentifier:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Get (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("rightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("rightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> GetAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Get(identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRight:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (LAPersistedRight right, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("removeRight:completion:"), right__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("removeRight:completion:"), right__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (LAPersistedRight right)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(right, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRightForIdentifier:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("removeRightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("removeRightForIdentifier:completion:"), nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(identifier, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeAllRightsWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void RemoveAll ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("removeAllRightsWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("removeAllRightsWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAllAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ RemoveAll((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("saveRight:identifier:completion:"), right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("saveRight:identifier:completion:"), right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:secret:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, NSData secret, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var secret__handle__ = secret!.GetNonNullHandle (nameof (secret));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("saveRight:identifier:secret:completion:"), right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("saveRight:identifier:secret:completion:"), right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier, NSData secret)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, secret, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LARightStore SharedStore {
+ [Export ("sharedStore")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ LARightStore? ret;
+ ret = Runtime.GetNSObject<LARightStore> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, Selector.GetHandle ("sharedStore")))!;
+ return ret!;
+ #endif
+ }
+ }
+ } /* class LARightStore */
+}
diff --git a/new/ios/native/LocalAuthentication/LASecret.g.cs b/new/ios/native/LocalAuthentication/LASecret.g.cs
new file mode 100644
index 0000000..d407aee
--- /dev/null
+++ b/new/ios/native/LocalAuthentication/LASecret.g.cs
@@ -0,0 +1,114 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LASecret", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LASecret : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("LASecret");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LASecret (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LASecret (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("loadDataWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void LoadData ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLASecretCompletionHandler))]LASecretCompletionHandler handler)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLASecretCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("loadDataWithCompletion:"), (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("loadDataWithCompletion:"), (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> LoadDataAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ LoadData((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ } /* class LASecret */
+}
diff --git a/old/ios/native/LocalAuthentication/LAStatus.g.cs b/new/ios/native/LocalAuthentication/LAStatus.g.cs
index 3bff2e2..649ced8 100644
--- a/old/ios/native/LocalAuthentication/LAStatus.g.cs
+++ b/new/ios/native/LocalAuthentication/LAStatus.g.cs
@@ -50,6 +50,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native ("LAError")]
public enum LAStatus : long {
Success = 0,
@@ -70,32 +71,32 @@ namespace LocalAuthentication {
AppCancel = -9,
InvalidContext = -10,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
WatchNotAvailable = -11,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
BiometryNotPaired = -12,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
BiometryDisconnected = -13,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
InvalidDimension = -14,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
BiometryNotAvailable = -6,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
BiometryNotEnrolled = -7,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
BiometryLockout = -8,
NotInteractive = -1004,
}
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static public partial class LAStatusExtensions {
[Field ("LAErrorDomain", "LocalAuthentication")]
diff --git a/old/ios/native/ObjCRuntime/Messaging.g.cs b/new/ios/native/ObjCRuntime/Messaging.g.cs
index c407cb6..7fbb03f 100644
--- a/old/ios/native/ObjCRuntime/Messaging.g.cs
+++ b/new/ios/native/ObjCRuntime/Messaging.g.cs
@@ -3662,6 +3662,24 @@ namespace ObjCRuntime {
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static IntPtr IntPtr_objc_msgSendSuper_CGSize_IntPtr (IntPtr receiver, IntPtr selector, CGSize arg1, IntPtr arg2);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSend_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSendSuper_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_IntPtr_int_IntPtr_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_IntPtr_int_IntPtr_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_IntPtr_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_IntPtr_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
public extern static IntPtr IntPtr_objc_msgSend_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static IntPtr IntPtr_objc_msgSendSuper_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
@@ -4182,10 +4200,6 @@ namespace ObjCRuntime {
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper_stret")]
public extern static void CGRect_objc_msgSendSuper_stret_CGRect_CGRect_float (out CGRect retval, IntPtr receiver, IntPtr selector, CGRect arg1, CGRect arg2, float arg3);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
- public extern static void void_objc_msgSend_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3);
- [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
- public extern static void void_objc_msgSendSuper_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3);
- [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
public extern static CGSize CGSize_objc_msgSend_CGSize (IntPtr receiver, IntPtr selector, CGSize arg1);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static CGSize CGSize_objc_msgSendSuper_CGSize (IntPtr receiver, IntPtr selector, CGSize arg1);
diff --git a/old/ios/native/ObjCRuntime/Trampolines.g.cs b/new/ios/native/ObjCRuntime/Trampolines.g.cs
index dead085..92284ad 100644
--- a/old/ios/native/ObjCRuntime/Trampolines.g.cs
+++ b/new/ios/native/ObjCRuntime/Trampolines.g.cs
@@ -9287,6 +9287,283 @@ namespace ObjCRuntime {
}
} /* class NIDLAContextReplyHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPrivateKeyCompletionHandler))]
+ internal delegate void DLAPrivateKeyCompletionHandler (IntPtr block, IntPtr data, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPrivateKeyCompletionHandler {
+ static internal readonly DLAPrivateKeyCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLAPrivateKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr data, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPrivateKeyCompletionHandler */
+ internal sealed class NIDLAPrivateKeyCompletionHandler : TrampolineBlockBase {
+ DLAPrivateKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPrivateKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPrivateKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPrivateKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPrivateKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPrivateKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyCompletionHandler))]
+ internal delegate void DLAPublicKeyCompletionHandler (IntPtr block, IntPtr data, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyCompletionHandler {
+ static internal readonly DLAPublicKeyCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLAPublicKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr data, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyCompletionHandler */
+ internal sealed class NIDLAPublicKeyCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPublicKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler))]
+ internal delegate void DLAPublicKeyVerifyDataCompletionHandler (IntPtr block, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyVerifyDataCompletionHandler {
+ static internal readonly DLAPublicKeyVerifyDataCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLAPublicKeyVerifyDataCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyVerifyDataCompletionHandler */
+ internal sealed class NIDLAPublicKeyVerifyDataCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyVerifyDataCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyVerifyDataCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyVerifyDataCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyVerifyDataCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLAPublicKeyVerifyDataCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightAuthorizeCompletionHandler))]
+ internal delegate void DLARightAuthorizeCompletionHandler (IntPtr block, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightAuthorizeCompletionHandler {
+ static internal readonly DLARightAuthorizeCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLARightAuthorizeCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightAuthorizeCompletionHandler */
+ internal sealed class NIDLARightAuthorizeCompletionHandler : TrampolineBlockBase {
+ DLARightAuthorizeCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightAuthorizeCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightAuthorizeCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightAuthorizeCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightAuthorizeCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightAuthorizeCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreCompletionHandler))]
+ internal delegate void DLARightStoreCompletionHandler (IntPtr block, IntPtr right, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreCompletionHandler {
+ static internal readonly DLARightStoreCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLARightStoreCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr right, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<LocalAuthentication.LAPersistedRight> (right)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreCompletionHandler */
+ internal sealed class NIDLARightStoreCompletionHandler : TrampolineBlockBase {
+ DLARightStoreCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::LocalAuthentication.LAPersistedRight? right, NSError? error)
+ {
+ var right__handle__ = right.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, right__handle__, error__handle__);
+ }
+ } /* class NIDLARightStoreCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler))]
+ internal delegate void DLARightStoreRemoveRightCompletionHandler (IntPtr block, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreRemoveRightCompletionHandler {
+ static internal readonly DLARightStoreRemoveRightCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLARightStoreRemoveRightCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreRemoveRightCompletionHandler */
+ internal sealed class NIDLARightStoreRemoveRightCompletionHandler : TrampolineBlockBase {
+ DLARightStoreRemoveRightCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreRemoveRightCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreRemoveRightCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreRemoveRightCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightStoreRemoveRightCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LASecretCompletionHandler))]
+ internal delegate void DLASecretCompletionHandler (IntPtr block, IntPtr data, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLASecretCompletionHandler {
+ static internal readonly DLASecretCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLASecretCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr data, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLASecretCompletionHandler */
+ internal sealed class NIDLASecretCompletionHandler : TrampolineBlockBase {
+ DLASecretCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLASecretCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLASecretCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LASecretCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLASecretCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLASecretCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::MLCompute.MLCGraphCompletionHandler))]
internal delegate void DMLCGraphCompletionHandler (IntPtr block, IntPtr resultTensor, IntPtr error, double executionTime);
//
diff --git a/old/ios/native/SupportDelegates.g.cs b/new/ios/native/SupportDelegates.g.cs
index df5a7e0..2134323 100644
--- a/old/ios/native/SupportDelegates.g.cs
+++ b/new/ios/native/SupportDelegates.g.cs
@@ -378,6 +378,13 @@ namespace JavaScriptCore {
namespace LocalAuthentication {
#nullable enable
public delegate void LAContextReplyHandler (bool success, NSError error);
+ public delegate void LAPrivateKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyVerifyDataCompletionHandler (NSError? error);
+ public delegate void LARightAuthorizeCompletionHandler (NSError? error);
+ public delegate void LARightStoreCompletionHandler (LocalAuthentication.LAPersistedRight? right, NSError? error);
+ public delegate void LARightStoreRemoveRightCompletionHandler (NSError? error);
+ public delegate void LASecretCompletionHandler (NSData? data, NSError? error);
}
namespace MLCompute {
#nullable enable
diff --git a/old/mac/full/LocalAuthentication/LAAccessControlOperation.g.cs b/new/mac/full/LocalAuthentication/LAAccessControlOperation.g.cs
index 915b4df..d65ae64 100644
--- a/old/mac/full/LocalAuthentication/LAAccessControlOperation.g.cs
+++ b/new/mac/full/LocalAuthentication/LAAccessControlOperation.g.cs
@@ -45,6 +45,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LAAccessControlOperation : long {
CreateItem = 0,
diff --git a/new/mac/full/LocalAuthentication/LAAuthenticationRequirement.g.cs b/new/mac/full/LocalAuthentication/LAAuthenticationRequirement.g.cs
new file mode 100644
index 0000000..9d7e112
--- /dev/null
+++ b/new/mac/full/LocalAuthentication/LAAuthenticationRequirement.g.cs
@@ -0,0 +1,127 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAAuthenticationRequirement", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAAuthenticationRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBiometryCurrentSetRequirement = "biometryCurrentSetRequirement";
+ static readonly IntPtr selBiometryCurrentSetRequirementHandle = Selector.GetHandle ("biometryCurrentSetRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBiometryRequirement = "biometryRequirement";
+ static readonly IntPtr selBiometryRequirementHandle = Selector.GetHandle ("biometryRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBiometryRequirementWithFallback_ = "biometryRequirementWithFallback:";
+ static readonly IntPtr selBiometryRequirementWithFallback_Handle = Selector.GetHandle ("biometryRequirementWithFallback:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDefaultRequirement = "defaultRequirement";
+ static readonly IntPtr selDefaultRequirementHandle = Selector.GetHandle ("defaultRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAAuthenticationRequirement");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LAAuthenticationRequirement () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAAuthenticationRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAAuthenticationRequirement (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("biometryRequirementWithFallback:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement GetBiometryRequirement (LABiometryFallbackRequirement fallback)
+ {
+ var fallback__handle__ = fallback!.GetNonNullHandle (nameof (fallback));
+ return Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, selBiometryRequirementWithFallback_Handle, fallback__handle__))!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement BiometryCurrentSetRequirement {
+ [Export ("biometryCurrentSetRequirement")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selBiometryCurrentSetRequirementHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement BiometryRequirement {
+ [Export ("biometryRequirement")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selBiometryRequirementHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selDefaultRequirementHandle))!;
+ return ret!;
+ }
+ }
+ } /* class LAAuthenticationRequirement */
+}
diff --git a/new/mac/full/LocalAuthentication/LABiometryFallbackRequirement.g.cs b/new/mac/full/LocalAuthentication/LABiometryFallbackRequirement.g.cs
new file mode 100644
index 0000000..ce30a39
--- /dev/null
+++ b/new/mac/full/LocalAuthentication/LABiometryFallbackRequirement.g.cs
@@ -0,0 +1,105 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LABiometryFallbackRequirement", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LABiometryFallbackRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDefaultRequirement = "defaultRequirement";
+ static readonly IntPtr selDefaultRequirementHandle = Selector.GetHandle ("defaultRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDevicePasscodeRequirement = "devicePasscodeRequirement";
+ static readonly IntPtr selDevicePasscodeRequirementHandle = Selector.GetHandle ("devicePasscodeRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LABiometryFallbackRequirement");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LABiometryFallbackRequirement () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LABiometryFallbackRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LABiometryFallbackRequirement (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LABiometryFallbackRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ get {
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selDefaultRequirementHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LABiometryFallbackRequirement DevicePasscodeRequirement {
+ [Export ("devicePasscodeRequirement")]
+ get {
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selDevicePasscodeRequirementHandle))!;
+ return ret!;
+ }
+ }
+ } /* class LABiometryFallbackRequirement */
+}
diff --git a/old/mac/full/LocalAuthentication/LABiometryType.g.cs b/new/mac/full/LocalAuthentication/LABiometryType.g.cs
index 5127722..547630a 100644
--- a/old/mac/full/LocalAuthentication/LABiometryType.g.cs
+++ b/new/mac/full/LocalAuthentication/LABiometryType.g.cs
@@ -45,6 +45,8 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.MacOSX, 10,13,2, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LABiometryType : long {
None = 0,
diff --git a/old/mac/full/LocalAuthentication/LAContext.g.cs b/new/mac/full/LocalAuthentication/LAContext.g.cs
index 3b2b2de..6f2c375 100644
--- a/old/mac/full/LocalAuthentication/LAContext.g.cs
+++ b/new/mac/full/LocalAuthentication/LAContext.g.cs
@@ -46,6 +46,7 @@ namespace LocalAuthentication {
[Register("LAContext", true)]
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
public unsafe partial class LAContext : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selBiometryType = "biometryType";
@@ -244,9 +245,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.MacOSX, 10,13,2, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public virtual LABiometryType BiometryType {
[Introduced (PlatformName.MacOSX, 10,13,2, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("biometryType")]
get {
LABiometryType ret;
@@ -276,13 +279,11 @@ namespace LocalAuthentication {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
public virtual bool InteractionNotAllowed {
- [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("interactionNotAllowed")]
@@ -293,8 +294,7 @@ namespace LocalAuthentication {
return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selInteractionNotAllowedHandle);
}
}
- [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setInteractionNotAllowed:")]
@@ -309,9 +309,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.iOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public virtual string? LocalizedCancelTitle {
[Introduced (PlatformName.iOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("localizedCancelTitle")]
get {
if (IsDirectBinding) {
@@ -322,6 +324,7 @@ namespace LocalAuthentication {
}
[Introduced (PlatformName.iOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setLocalizedCancelTitle:")]
set {
var nsvalue = CFString.CreateNative (value);
@@ -334,7 +337,9 @@ namespace LocalAuthentication {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public virtual string? LocalizedFallbackTitle {
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("localizedFallbackTitle")]
get {
if (IsDirectBinding) {
@@ -343,6 +348,7 @@ namespace LocalAuthentication {
return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selLocalizedFallbackTitleHandle))!;
}
}
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setLocalizedFallbackTitle:")]
set {
var nsvalue = CFString.CreateNative (value);
@@ -356,12 +362,10 @@ namespace LocalAuthentication {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
public virtual string LocalizedReason {
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("localizedReason")]
@@ -373,7 +377,6 @@ namespace LocalAuthentication {
}
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setLocalizedReason:")]
@@ -463,9 +466,11 @@ namespace LocalAuthentication {
[Field ("LATouchIDAuthenticationMaximumAllowableReuseDuration", "LocalAuthentication")]
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12,4, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public static double TouchIdAuthenticationMaximumAllowableReuseDuration {
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12,4, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
get {
return Dlfcn.GetDouble (Libraries.LocalAuthentication.Handle, "LATouchIDAuthenticationMaximumAllowableReuseDuration");
}
diff --git a/old/mac/full/LocalAuthentication/LACredentialType.g.cs b/new/mac/full/LocalAuthentication/LACredentialType.g.cs
index 264b387..e9ee6ee 100644
--- a/old/mac/full/LocalAuthentication/LACredentialType.g.cs
+++ b/new/mac/full/LocalAuthentication/LACredentialType.g.cs
@@ -46,14 +46,13 @@ namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.WatchOS, 3,0, ObjCRuntime.PlatformArchitecture.All)]
- [Introduced (PlatformName.TvOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LACredentialType : long {
ApplicationPassword = 0,
[Introduced (PlatformName.iOS, 13,4, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15,4, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
SmartCardPin = -3,
}
}
diff --git a/new/mac/full/LocalAuthentication/LAPersistedRight.g.cs b/new/mac/full/LocalAuthentication/LAPersistedRight.g.cs
new file mode 100644
index 0000000..e79778e
--- /dev/null
+++ b/new/mac/full/LocalAuthentication/LAPersistedRight.g.cs
@@ -0,0 +1,101 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPersistedRight", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAPersistedRight : LARight {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selKey = "key";
+ static readonly IntPtr selKeyHandle = Selector.GetHandle ("key");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSecret = "secret";
+ static readonly IntPtr selSecretHandle = Selector.GetHandle ("secret");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAPersistedRight");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPersistedRight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPersistedRight (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LAPrivateKey Key {
+ [Export ("key")]
+ get {
+ LAPrivateKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selKeyHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selKeyHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LASecret Secret {
+ [Export ("secret")]
+ get {
+ LASecret? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSecretHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSecretHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class LAPersistedRight */
+}
diff --git a/old/mac/full/LocalAuthentication/LAPolicy.g.cs b/new/mac/full/LocalAuthentication/LAPolicy.g.cs
index 423a5dc..6100775 100644
--- a/old/mac/full/LocalAuthentication/LAPolicy.g.cs
+++ b/new/mac/full/LocalAuthentication/LAPolicy.g.cs
@@ -45,16 +45,30 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LAPolicy : long {
[Introduced (PlatformName.MacOSX, 10,12,2, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
DeviceOwnerAuthenticationWithBiometrics = 1,
DeviceOwnerAuthentication = 2,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
DeviceOwnerAuthenticationWithWatch = 3,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ DeviceOwnerAuthenticationWithBiometricsOrWatch = 4,
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Obsolete ("Use DeviceOwnerAuthenticationWithBiometricsOrWatch enum value instead.", false)]
OwnerAuthenticationWithBiometricsOrWatch = 4,
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ DeviceOwnerAuthenticationWithWristDetection = 5,
}
}
diff --git a/new/mac/full/LocalAuthentication/LAPrivateKey.g.cs b/new/mac/full/LocalAuthentication/LAPrivateKey.g.cs
new file mode 100644
index 0000000..ab8792a
--- /dev/null
+++ b/new/mac/full/LocalAuthentication/LAPrivateKey.g.cs
@@ -0,0 +1,227 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPrivateKey", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAPrivateKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanDecryptUsingSecKeyAlgorithm_ = "canDecryptUsingSecKeyAlgorithm:";
+ static readonly IntPtr selCanDecryptUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canDecryptUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanExchangeKeysUsingSecKeyAlgorithm_ = "canExchangeKeysUsingSecKeyAlgorithm:";
+ static readonly IntPtr selCanExchangeKeysUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canExchangeKeysUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanSignUsingSecKeyAlgorithm_ = "canSignUsingSecKeyAlgorithm:";
+ static readonly IntPtr selCanSignUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canSignUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDecryptData_SecKeyAlgorithm_Completion_ = "decryptData:secKeyAlgorithm:completion:";
+ static readonly IntPtr selDecryptData_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("decryptData:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_ = "exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:";
+ static readonly IntPtr selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_Handle = Selector.GetHandle ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPublicKey = "publicKey";
+ static readonly IntPtr selPublicKeyHandle = Selector.GetHandle ("publicKey");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSignData_SecKeyAlgorithm_Completion_ = "signData:secKeyAlgorithm:completion:";
+ static readonly IntPtr selSignData_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("signData:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAPrivateKey");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPrivateKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPrivateKey (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("canDecryptUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanDecrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanDecryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanDecryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("canExchangeKeysUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanExchangeKeys (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanExchangeKeysUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanExchangeKeysUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("canSignUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanSign (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanSignUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanSignUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("decryptData:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Decrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr (this.Handle, selDecryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr (this.SuperHandle, selDecryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> DecryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Decrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExchangeKeys (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var publicKey__handle__ = publicKey!.GetNonNullHandle (nameof (publicKey));
+ var parameters__handle__ = parameters!.GetNonNullHandle (nameof (parameters));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr_IntPtr (this.Handle, selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_Handle, publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr_IntPtr (this.SuperHandle, selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_Handle, publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExchangeKeysAsync (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExchangeKeys(publicKey, algorithm, parameters, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("signData:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Sign (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr (this.Handle, selSignData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr (this.SuperHandle, selSignData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> SignAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Sign(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LAPublicKey PublicKey {
+ [Export ("publicKey")]
+ get {
+ LAPublicKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPublicKeyHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPublicKeyHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class LAPrivateKey */
+}
diff --git a/new/mac/full/LocalAuthentication/LAPublicKey.g.cs b/new/mac/full/LocalAuthentication/LAPublicKey.g.cs
new file mode 100644
index 0000000..987139a
--- /dev/null
+++ b/new/mac/full/LocalAuthentication/LAPublicKey.g.cs
@@ -0,0 +1,197 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPublicKey", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAPublicKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanEncryptUsingSecKeyAlgorithm_ = "canEncryptUsingSecKeyAlgorithm:";
+ static readonly IntPtr selCanEncryptUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canEncryptUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanVerifyUsingSecKeyAlgorithm_ = "canVerifyUsingSecKeyAlgorithm:";
+ static readonly IntPtr selCanVerifyUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canVerifyUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEncryptData_SecKeyAlgorithm_Completion_ = "encryptData:secKeyAlgorithm:completion:";
+ static readonly IntPtr selEncryptData_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("encryptData:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selExportBytesWithCompletion_ = "exportBytesWithCompletion:";
+ static readonly IntPtr selExportBytesWithCompletion_Handle = Selector.GetHandle ("exportBytesWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selVerifyData_Signature_SecKeyAlgorithm_Completion_ = "verifyData:signature:secKeyAlgorithm:completion:";
+ static readonly IntPtr selVerifyData_Signature_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("verifyData:signature:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAPublicKey");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPublicKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPublicKey (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("canEncryptUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanEncrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanEncryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanEncryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("canVerifyUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanVerify (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanVerifyUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanVerifyUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("encryptData:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Encrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr (this.Handle, selEncryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr (this.SuperHandle, selEncryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> EncryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Encrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exportBytesWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExportBytes ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selExportBytesWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selExportBytesWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExportBytesAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExportBytes((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("verifyData:signature:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Verify (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyVerifyDataCompletionHandler))]LAPublicKeyVerifyDataCompletionHandler handler)
+ {
+ var signedData__handle__ = signedData!.GetNonNullHandle (nameof (signedData));
+ var signature__handle__ = signature!.GetNonNullHandle (nameof (signature));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyVerifyDataCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_int_IntPtr (this.Handle, selVerifyData_Signature_SecKeyAlgorithm_Completion_Handle, signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_int_IntPtr (this.SuperHandle, selVerifyData_Signature_SecKeyAlgorithm_Completion_Handle, signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task VerifyAsync (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Verify(signedData, signature, algorithm, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class LAPublicKey */
+}
diff --git a/new/mac/full/LocalAuthentication/LARight.g.cs b/new/mac/full/LocalAuthentication/LARight.g.cs
new file mode 100644
index 0000000..0c573ec
--- /dev/null
+++ b/new/mac/full/LocalAuthentication/LARight.g.cs
@@ -0,0 +1,237 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARight", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LARight : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAuthorizeWithLocalizedReason_Completion_ = "authorizeWithLocalizedReason:completion:";
+ static readonly IntPtr selAuthorizeWithLocalizedReason_Completion_Handle = Selector.GetHandle ("authorizeWithLocalizedReason:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCheckCanAuthorizeWithCompletion_ = "checkCanAuthorizeWithCompletion:";
+ static readonly IntPtr selCheckCanAuthorizeWithCompletion_Handle = Selector.GetHandle ("checkCanAuthorizeWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDeauthorizeWithCompletion_ = "deauthorizeWithCompletion:";
+ static readonly IntPtr selDeauthorizeWithCompletion_Handle = Selector.GetHandle ("deauthorizeWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithRequirement_ = "initWithRequirement:";
+ static readonly IntPtr selInitWithRequirement_Handle = Selector.GetHandle ("initWithRequirement:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetTag_ = "setTag:";
+ static readonly IntPtr selSetTag_Handle = Selector.GetHandle ("setTag:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selState = "state";
+ static readonly IntPtr selStateHandle = Selector.GetHandle ("state");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selTag = "tag";
+ static readonly IntPtr selTagHandle = Selector.GetHandle ("tag");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LARight");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LARight () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARight (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithRequirement:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public LARight (LAAuthenticationRequirement requirement)
+ : base (NSObjectFlag.Empty)
+ {
+ var requirement__handle__ = requirement!.GetNonNullHandle (nameof (requirement));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selInitWithRequirement_Handle, requirement__handle__), "initWithRequirement:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selInitWithRequirement_Handle, requirement__handle__), "initWithRequirement:");
+ }
+ }
+ [Export ("authorizeWithLocalizedReason:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Authorize (string localizedReason, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ if (localizedReason is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (localizedReason));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nslocalizedReason = CFString.CreateNative (localizedReason);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selAuthorizeWithLocalizedReason_Completion_Handle, nslocalizedReason, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selAuthorizeWithLocalizedReason_Completion_Handle, nslocalizedReason, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nslocalizedReason);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task AuthorizeAsync (string localizedReason)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Authorize(localizedReason, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("checkCanAuthorizeWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void CheckCanAuthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selCheckCanAuthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selCheckCanAuthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task CheckCanAuthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ CheckCanAuthorize((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("deauthorizeWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Deauthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDAction))]global::System.Action handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDAction.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selDeauthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selDeauthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task DeauthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Deauthorize(() => {
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LARightState State {
+ [Export ("state")]
+ get {
+ LARightState ret;
+ if (IsDirectBinding) {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selStateHandle);
+ } else {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selStateHandle);
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual nint Tag {
+ [Export ("tag")]
+ get {
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selTagHandle);
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selTagHandle);
+ }
+ }
+ [Export ("setTag:")]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetTag_Handle, (IntPtr) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetTag_Handle, (IntPtr) value);
+ }
+ }
+ }
+ } /* class LARight */
+}
diff --git a/new/mac/full/LocalAuthentication/LARightState.g.cs b/new/mac/full/LocalAuthentication/LARightState.g.cs
new file mode 100644
index 0000000..ccecb24
--- /dev/null
+++ b/new/mac/full/LocalAuthentication/LARightState.g.cs
@@ -0,0 +1,58 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum LARightState : long {
+ Unknown = 0,
+ Authorizing = 1,
+ Authorized = 2,
+ NotAuthorized = 3,
+ }
+}
diff --git a/new/mac/full/LocalAuthentication/LARightStore.g.cs b/new/mac/full/LocalAuthentication/LARightStore.g.cs
new file mode 100644
index 0000000..c14aea3
--- /dev/null
+++ b/new/mac/full/LocalAuthentication/LARightStore.g.cs
@@ -0,0 +1,299 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARightStore", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LARightStore : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRemoveAllRightsWithCompletion_ = "removeAllRightsWithCompletion:";
+ static readonly IntPtr selRemoveAllRightsWithCompletion_Handle = Selector.GetHandle ("removeAllRightsWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRemoveRight_Completion_ = "removeRight:completion:";
+ static readonly IntPtr selRemoveRight_Completion_Handle = Selector.GetHandle ("removeRight:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRemoveRightForIdentifier_Completion_ = "removeRightForIdentifier:completion:";
+ static readonly IntPtr selRemoveRightForIdentifier_Completion_Handle = Selector.GetHandle ("removeRightForIdentifier:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRightForIdentifier_Completion_ = "rightForIdentifier:completion:";
+ static readonly IntPtr selRightForIdentifier_Completion_Handle = Selector.GetHandle ("rightForIdentifier:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSaveRight_Identifier_Completion_ = "saveRight:identifier:completion:";
+ static readonly IntPtr selSaveRight_Identifier_Completion_Handle = Selector.GetHandle ("saveRight:identifier:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSaveRight_Identifier_Secret_Completion_ = "saveRight:identifier:secret:completion:";
+ static readonly IntPtr selSaveRight_Identifier_Secret_Completion_Handle = Selector.GetHandle ("saveRight:identifier:secret:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSharedStore = "sharedStore";
+ static readonly IntPtr selSharedStoreHandle = Selector.GetHandle ("sharedStore");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LARightStore");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARightStore (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARightStore (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("rightForIdentifier:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Get (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> GetAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Get(identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRight:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (LAPersistedRight right, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selRemoveRight_Completion_Handle, right__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selRemoveRight_Completion_Handle, right__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (LAPersistedRight right)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(right, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRightForIdentifier:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selRemoveRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selRemoveRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(identifier, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeAllRightsWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void RemoveAll ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selRemoveAllRightsWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selRemoveAllRightsWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAllAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ RemoveAll((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, selSaveRight_Identifier_Completion_Handle, right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, selSaveRight_Identifier_Completion_Handle, right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:secret:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, NSData secret, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var secret__handle__ = secret!.GetNonNullHandle (nameof (secret));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (this.Handle, selSaveRight_Identifier_Secret_Completion_Handle, right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr (this.SuperHandle, selSaveRight_Identifier_Secret_Completion_Handle, right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier, NSData secret)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, secret, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LARightStore SharedStore {
+ [Export ("sharedStore")]
+ get {
+ LARightStore? ret;
+ ret = Runtime.GetNSObject<LARightStore> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selSharedStoreHandle))!;
+ return ret!;
+ }
+ }
+ } /* class LARightStore */
+}
diff --git a/new/mac/full/LocalAuthentication/LASecret.g.cs b/new/mac/full/LocalAuthentication/LASecret.g.cs
new file mode 100644
index 0000000..b31be24
--- /dev/null
+++ b/new/mac/full/LocalAuthentication/LASecret.g.cs
@@ -0,0 +1,102 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LASecret", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LASecret : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selLoadDataWithCompletion_ = "loadDataWithCompletion:";
+ static readonly IntPtr selLoadDataWithCompletion_Handle = Selector.GetHandle ("loadDataWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LASecret");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LASecret (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LASecret (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("loadDataWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void LoadData ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLASecretCompletionHandler))]LASecretCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLASecretCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selLoadDataWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selLoadDataWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> LoadDataAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ LoadData((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ } /* class LASecret */
+}
diff --git a/old/mac/full/LocalAuthentication/LAStatus.g.cs b/new/mac/full/LocalAuthentication/LAStatus.g.cs
index 8dad1b7..981b681 100644
--- a/old/mac/full/LocalAuthentication/LAStatus.g.cs
+++ b/new/mac/full/LocalAuthentication/LAStatus.g.cs
@@ -45,6 +45,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native ("LAError")]
public enum LAStatus : long {
Success = 0,
@@ -65,32 +66,32 @@ namespace LocalAuthentication {
AppCancel = -9,
InvalidContext = -10,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
WatchNotAvailable = -11,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
BiometryNotPaired = -12,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
BiometryDisconnected = -13,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
InvalidDimension = -14,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
BiometryNotAvailable = -6,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
BiometryNotEnrolled = -7,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
BiometryLockout = -8,
NotInteractive = -1004,
}
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static public partial class LAStatusExtensions {
[Field ("LAErrorDomain", "LocalAuthentication")]
diff --git a/old/mac/full/ObjCRuntime/Messaging.g.cs b/new/mac/full/ObjCRuntime/Messaging.g.cs
index c5f4158..631b61c 100644
--- a/old/mac/full/ObjCRuntime/Messaging.g.cs
+++ b/new/mac/full/ObjCRuntime/Messaging.g.cs
@@ -4949,6 +4949,24 @@ namespace ObjCRuntime {
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static global::System.IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_UIntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, UIntPtr arg4, IntPtr arg5, IntPtr arg6, IntPtr arg7, IntPtr arg8, IntPtr arg9);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSend_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSendSuper_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_IntPtr_int_IntPtr_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_IntPtr_int_IntPtr_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_IntPtr_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_IntPtr_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
public extern static IntPtr IntPtr_objc_msgSend_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static IntPtr IntPtr_objc_msgSendSuper_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
diff --git a/old/mac/full/ObjCRuntime/Trampolines.g.cs b/new/mac/full/ObjCRuntime/Trampolines.g.cs
index 79e95c4..4c03649 100644
--- a/old/mac/full/ObjCRuntime/Trampolines.g.cs
+++ b/new/mac/full/ObjCRuntime/Trampolines.g.cs
@@ -9901,6 +9901,283 @@ namespace ObjCRuntime {
}
} /* class NIDLAContextReplyHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPrivateKeyCompletionHandler))]
+ internal delegate void DLAPrivateKeyCompletionHandler (IntPtr block, IntPtr data, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPrivateKeyCompletionHandler {
+ static internal readonly DLAPrivateKeyCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLAPrivateKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr data, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPrivateKeyCompletionHandler */
+ internal sealed class NIDLAPrivateKeyCompletionHandler : TrampolineBlockBase {
+ DLAPrivateKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPrivateKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPrivateKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPrivateKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPrivateKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPrivateKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyCompletionHandler))]
+ internal delegate void DLAPublicKeyCompletionHandler (IntPtr block, IntPtr data, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyCompletionHandler {
+ static internal readonly DLAPublicKeyCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLAPublicKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr data, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyCompletionHandler */
+ internal sealed class NIDLAPublicKeyCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPublicKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler))]
+ internal delegate void DLAPublicKeyVerifyDataCompletionHandler (IntPtr block, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyVerifyDataCompletionHandler {
+ static internal readonly DLAPublicKeyVerifyDataCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLAPublicKeyVerifyDataCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyVerifyDataCompletionHandler */
+ internal sealed class NIDLAPublicKeyVerifyDataCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyVerifyDataCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyVerifyDataCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyVerifyDataCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyVerifyDataCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLAPublicKeyVerifyDataCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightAuthorizeCompletionHandler))]
+ internal delegate void DLARightAuthorizeCompletionHandler (IntPtr block, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightAuthorizeCompletionHandler {
+ static internal readonly DLARightAuthorizeCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLARightAuthorizeCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightAuthorizeCompletionHandler */
+ internal sealed class NIDLARightAuthorizeCompletionHandler : TrampolineBlockBase {
+ DLARightAuthorizeCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightAuthorizeCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightAuthorizeCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightAuthorizeCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightAuthorizeCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightAuthorizeCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreCompletionHandler))]
+ internal delegate void DLARightStoreCompletionHandler (IntPtr block, IntPtr right, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreCompletionHandler {
+ static internal readonly DLARightStoreCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLARightStoreCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr right, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<LocalAuthentication.LAPersistedRight> (right)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreCompletionHandler */
+ internal sealed class NIDLARightStoreCompletionHandler : TrampolineBlockBase {
+ DLARightStoreCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::LocalAuthentication.LAPersistedRight? right, NSError? error)
+ {
+ var right__handle__ = right.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, right__handle__, error__handle__);
+ }
+ } /* class NIDLARightStoreCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler))]
+ internal delegate void DLARightStoreRemoveRightCompletionHandler (IntPtr block, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreRemoveRightCompletionHandler {
+ static internal readonly DLARightStoreRemoveRightCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLARightStoreRemoveRightCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreRemoveRightCompletionHandler */
+ internal sealed class NIDLARightStoreRemoveRightCompletionHandler : TrampolineBlockBase {
+ DLARightStoreRemoveRightCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreRemoveRightCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreRemoveRightCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreRemoveRightCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightStoreRemoveRightCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LASecretCompletionHandler))]
+ internal delegate void DLASecretCompletionHandler (IntPtr block, IntPtr data, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLASecretCompletionHandler {
+ static internal readonly DLASecretCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLASecretCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr data, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLASecretCompletionHandler */
+ internal sealed class NIDLASecretCompletionHandler : TrampolineBlockBase {
+ DLASecretCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLASecretCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLASecretCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LASecretCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLASecretCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLASecretCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::MLCompute.MLCGraphCompletionHandler))]
internal delegate void DMLCGraphCompletionHandler (IntPtr block, IntPtr resultTensor, IntPtr error, double executionTime);
//
diff --git a/old/mac/full/SupportDelegates.g.cs b/new/mac/full/SupportDelegates.g.cs
index 361e15e..286ecb0 100644
--- a/old/mac/full/SupportDelegates.g.cs
+++ b/new/mac/full/SupportDelegates.g.cs
@@ -484,6 +484,13 @@ namespace JavaScriptCore {
namespace LocalAuthentication {
#nullable enable
public delegate void LAContextReplyHandler (bool success, NSError error);
+ public delegate void LAPrivateKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyVerifyDataCompletionHandler (NSError? error);
+ public delegate void LARightAuthorizeCompletionHandler (NSError? error);
+ public delegate void LARightStoreCompletionHandler (LocalAuthentication.LAPersistedRight? right, NSError? error);
+ public delegate void LARightStoreRemoveRightCompletionHandler (NSError? error);
+ public delegate void LASecretCompletionHandler (NSData? data, NSError? error);
}
namespace MLCompute {
#nullable enable
diff --git a/old/mac/mobile/LocalAuthentication/LAAccessControlOperation.g.cs b/new/mac/mobile/LocalAuthentication/LAAccessControlOperation.g.cs
index 915b4df..d65ae64 100644
--- a/old/mac/mobile/LocalAuthentication/LAAccessControlOperation.g.cs
+++ b/new/mac/mobile/LocalAuthentication/LAAccessControlOperation.g.cs
@@ -45,6 +45,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LAAccessControlOperation : long {
CreateItem = 0,
diff --git a/new/mac/mobile/LocalAuthentication/LAAuthenticationRequirement.g.cs b/new/mac/mobile/LocalAuthentication/LAAuthenticationRequirement.g.cs
new file mode 100644
index 0000000..9d7e112
--- /dev/null
+++ b/new/mac/mobile/LocalAuthentication/LAAuthenticationRequirement.g.cs
@@ -0,0 +1,127 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAAuthenticationRequirement", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAAuthenticationRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBiometryCurrentSetRequirement = "biometryCurrentSetRequirement";
+ static readonly IntPtr selBiometryCurrentSetRequirementHandle = Selector.GetHandle ("biometryCurrentSetRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBiometryRequirement = "biometryRequirement";
+ static readonly IntPtr selBiometryRequirementHandle = Selector.GetHandle ("biometryRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selBiometryRequirementWithFallback_ = "biometryRequirementWithFallback:";
+ static readonly IntPtr selBiometryRequirementWithFallback_Handle = Selector.GetHandle ("biometryRequirementWithFallback:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDefaultRequirement = "defaultRequirement";
+ static readonly IntPtr selDefaultRequirementHandle = Selector.GetHandle ("defaultRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAAuthenticationRequirement");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LAAuthenticationRequirement () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAAuthenticationRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAAuthenticationRequirement (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("biometryRequirementWithFallback:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement GetBiometryRequirement (LABiometryFallbackRequirement fallback)
+ {
+ var fallback__handle__ = fallback!.GetNonNullHandle (nameof (fallback));
+ return Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (class_ptr, selBiometryRequirementWithFallback_Handle, fallback__handle__))!;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement BiometryCurrentSetRequirement {
+ [Export ("biometryCurrentSetRequirement")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selBiometryCurrentSetRequirementHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement BiometryRequirement {
+ [Export ("biometryRequirement")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selBiometryRequirementHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LAAuthenticationRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ get {
+ LAAuthenticationRequirement? ret;
+ ret = Runtime.GetNSObject<LAAuthenticationRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selDefaultRequirementHandle))!;
+ return ret!;
+ }
+ }
+ } /* class LAAuthenticationRequirement */
+}
diff --git a/new/mac/mobile/LocalAuthentication/LABiometryFallbackRequirement.g.cs b/new/mac/mobile/LocalAuthentication/LABiometryFallbackRequirement.g.cs
new file mode 100644
index 0000000..ce30a39
--- /dev/null
+++ b/new/mac/mobile/LocalAuthentication/LABiometryFallbackRequirement.g.cs
@@ -0,0 +1,105 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LABiometryFallbackRequirement", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LABiometryFallbackRequirement : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDefaultRequirement = "defaultRequirement";
+ static readonly IntPtr selDefaultRequirementHandle = Selector.GetHandle ("defaultRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDevicePasscodeRequirement = "devicePasscodeRequirement";
+ static readonly IntPtr selDevicePasscodeRequirementHandle = Selector.GetHandle ("devicePasscodeRequirement");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LABiometryFallbackRequirement");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LABiometryFallbackRequirement () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LABiometryFallbackRequirement (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LABiometryFallbackRequirement (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LABiometryFallbackRequirement DefaultRequirement {
+ [Export ("defaultRequirement")]
+ get {
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selDefaultRequirementHandle))!;
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LABiometryFallbackRequirement DevicePasscodeRequirement {
+ [Export ("devicePasscodeRequirement")]
+ get {
+ LABiometryFallbackRequirement? ret;
+ ret = Runtime.GetNSObject<LABiometryFallbackRequirement> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selDevicePasscodeRequirementHandle))!;
+ return ret!;
+ }
+ }
+ } /* class LABiometryFallbackRequirement */
+}
diff --git a/old/mac/mobile/LocalAuthentication/LABiometryType.g.cs b/new/mac/mobile/LocalAuthentication/LABiometryType.g.cs
index 5127722..547630a 100644
--- a/old/mac/mobile/LocalAuthentication/LABiometryType.g.cs
+++ b/new/mac/mobile/LocalAuthentication/LABiometryType.g.cs
@@ -45,6 +45,8 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.MacOSX, 10,13,2, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LABiometryType : long {
None = 0,
diff --git a/old/mac/mobile/LocalAuthentication/LAContext.g.cs b/new/mac/mobile/LocalAuthentication/LAContext.g.cs
index 3b2b2de..6f2c375 100644
--- a/old/mac/mobile/LocalAuthentication/LAContext.g.cs
+++ b/new/mac/mobile/LocalAuthentication/LAContext.g.cs
@@ -46,6 +46,7 @@ namespace LocalAuthentication {
[Register("LAContext", true)]
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
public unsafe partial class LAContext : NSObject {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
const string selBiometryType = "biometryType";
@@ -244,9 +245,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.MacOSX, 10,13,2, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public virtual LABiometryType BiometryType {
[Introduced (PlatformName.MacOSX, 10,13,2, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("biometryType")]
get {
LABiometryType ret;
@@ -276,13 +279,11 @@ namespace LocalAuthentication {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
- [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
public virtual bool InteractionNotAllowed {
- [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("interactionNotAllowed")]
@@ -293,8 +294,7 @@ namespace LocalAuthentication {
return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, selInteractionNotAllowedHandle);
}
}
- [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setInteractionNotAllowed:")]
@@ -309,9 +309,11 @@ namespace LocalAuthentication {
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Introduced (PlatformName.iOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public virtual string? LocalizedCancelTitle {
[Introduced (PlatformName.iOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("localizedCancelTitle")]
get {
if (IsDirectBinding) {
@@ -322,6 +324,7 @@ namespace LocalAuthentication {
}
[Introduced (PlatformName.iOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setLocalizedCancelTitle:")]
set {
var nsvalue = CFString.CreateNative (value);
@@ -334,7 +337,9 @@ namespace LocalAuthentication {
}
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public virtual string? LocalizedFallbackTitle {
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("localizedFallbackTitle")]
get {
if (IsDirectBinding) {
@@ -343,6 +348,7 @@ namespace LocalAuthentication {
return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selLocalizedFallbackTitleHandle))!;
}
}
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setLocalizedFallbackTitle:")]
set {
var nsvalue = CFString.CreateNative (value);
@@ -356,12 +362,10 @@ namespace LocalAuthentication {
}
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
public virtual string LocalizedReason {
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("localizedReason")]
@@ -373,7 +377,6 @@ namespace LocalAuthentication {
}
}
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
[Export ("setLocalizedReason:")]
@@ -463,9 +466,11 @@ namespace LocalAuthentication {
[Field ("LATouchIDAuthenticationMaximumAllowableReuseDuration", "LocalAuthentication")]
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12,4, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
public static double TouchIdAuthenticationMaximumAllowableReuseDuration {
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,12,4, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
get {
return Dlfcn.GetDouble (Libraries.LocalAuthentication.Handle, "LATouchIDAuthenticationMaximumAllowableReuseDuration");
}
diff --git a/old/mac/mobile/LocalAuthentication/LACredentialType.g.cs b/new/mac/mobile/LocalAuthentication/LACredentialType.g.cs
index 264b387..e9ee6ee 100644
--- a/old/mac/mobile/LocalAuthentication/LACredentialType.g.cs
+++ b/new/mac/mobile/LocalAuthentication/LACredentialType.g.cs
@@ -46,14 +46,13 @@ namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.WatchOS, 3,0, ObjCRuntime.PlatformArchitecture.All)]
- [Introduced (PlatformName.TvOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LACredentialType : long {
ApplicationPassword = 0,
[Introduced (PlatformName.iOS, 13,4, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15,4, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
SmartCardPin = -3,
}
}
diff --git a/new/mac/mobile/LocalAuthentication/LAPersistedRight.g.cs b/new/mac/mobile/LocalAuthentication/LAPersistedRight.g.cs
new file mode 100644
index 0000000..e79778e
--- /dev/null
+++ b/new/mac/mobile/LocalAuthentication/LAPersistedRight.g.cs
@@ -0,0 +1,101 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPersistedRight", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAPersistedRight : LARight {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selKey = "key";
+ static readonly IntPtr selKeyHandle = Selector.GetHandle ("key");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSecret = "secret";
+ static readonly IntPtr selSecretHandle = Selector.GetHandle ("secret");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAPersistedRight");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPersistedRight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPersistedRight (IntPtr handle) : base (handle)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LAPrivateKey Key {
+ [Export ("key")]
+ get {
+ LAPrivateKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selKeyHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPrivateKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selKeyHandle))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LASecret Secret {
+ [Export ("secret")]
+ get {
+ LASecret? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selSecretHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<LASecret> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selSecretHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class LAPersistedRight */
+}
diff --git a/old/mac/mobile/LocalAuthentication/LAPolicy.g.cs b/new/mac/mobile/LocalAuthentication/LAPolicy.g.cs
index 423a5dc..6100775 100644
--- a/old/mac/mobile/LocalAuthentication/LAPolicy.g.cs
+++ b/new/mac/mobile/LocalAuthentication/LAPolicy.g.cs
@@ -45,16 +45,30 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native]
public enum LAPolicy : long {
[Introduced (PlatformName.MacOSX, 10,12,2, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
DeviceOwnerAuthenticationWithBiometrics = 1,
DeviceOwnerAuthentication = 2,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
DeviceOwnerAuthenticationWithWatch = 3,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ DeviceOwnerAuthenticationWithBiometricsOrWatch = 4,
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Obsolete ("Use DeviceOwnerAuthenticationWithBiometricsOrWatch enum value instead.", false)]
OwnerAuthenticationWithBiometricsOrWatch = 4,
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ DeviceOwnerAuthenticationWithWristDetection = 5,
}
}
diff --git a/new/mac/mobile/LocalAuthentication/LAPrivateKey.g.cs b/new/mac/mobile/LocalAuthentication/LAPrivateKey.g.cs
new file mode 100644
index 0000000..ab8792a
--- /dev/null
+++ b/new/mac/mobile/LocalAuthentication/LAPrivateKey.g.cs
@@ -0,0 +1,227 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPrivateKey", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAPrivateKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanDecryptUsingSecKeyAlgorithm_ = "canDecryptUsingSecKeyAlgorithm:";
+ static readonly IntPtr selCanDecryptUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canDecryptUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanExchangeKeysUsingSecKeyAlgorithm_ = "canExchangeKeysUsingSecKeyAlgorithm:";
+ static readonly IntPtr selCanExchangeKeysUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canExchangeKeysUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanSignUsingSecKeyAlgorithm_ = "canSignUsingSecKeyAlgorithm:";
+ static readonly IntPtr selCanSignUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canSignUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDecryptData_SecKeyAlgorithm_Completion_ = "decryptData:secKeyAlgorithm:completion:";
+ static readonly IntPtr selDecryptData_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("decryptData:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_ = "exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:";
+ static readonly IntPtr selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_Handle = Selector.GetHandle ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selPublicKey = "publicKey";
+ static readonly IntPtr selPublicKeyHandle = Selector.GetHandle ("publicKey");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSignData_SecKeyAlgorithm_Completion_ = "signData:secKeyAlgorithm:completion:";
+ static readonly IntPtr selSignData_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("signData:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAPrivateKey");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPrivateKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPrivateKey (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("canDecryptUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanDecrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanDecryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanDecryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("canExchangeKeysUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanExchangeKeys (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanExchangeKeysUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanExchangeKeysUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("canSignUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanSign (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanSignUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanSignUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("decryptData:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Decrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr (this.Handle, selDecryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr (this.SuperHandle, selDecryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> DecryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Decrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exchangeKeysWithPublicKey:secKeyAlgorithm:secKeyParameters:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExchangeKeys (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var publicKey__handle__ = publicKey!.GetNonNullHandle (nameof (publicKey));
+ var parameters__handle__ = parameters!.GetNonNullHandle (nameof (parameters));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr_IntPtr (this.Handle, selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_Handle, publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr_IntPtr (this.SuperHandle, selExchangeKeysWithPublicKey_SecKeyAlgorithm_SecKeyParameters_Completion_Handle, publicKey__handle__, (int)algorithm, parameters__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExchangeKeysAsync (NSData publicKey, global::Security.SecKeyAlgorithm algorithm, NSDictionary parameters)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExchangeKeys(publicKey, algorithm, parameters, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("signData:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Sign (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPrivateKeyCompletionHandler))]LAPrivateKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPrivateKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr (this.Handle, selSignData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr (this.SuperHandle, selSignData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> SignAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Sign(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LAPublicKey PublicKey {
+ [Export ("publicKey")]
+ get {
+ LAPublicKey? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selPublicKeyHandle))!;
+ } else {
+ ret = Runtime.GetNSObject<LAPublicKey> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selPublicKeyHandle))!;
+ }
+ return ret!;
+ }
+ }
+ } /* class LAPrivateKey */
+}
diff --git a/new/mac/mobile/LocalAuthentication/LAPublicKey.g.cs b/new/mac/mobile/LocalAuthentication/LAPublicKey.g.cs
new file mode 100644
index 0000000..987139a
--- /dev/null
+++ b/new/mac/mobile/LocalAuthentication/LAPublicKey.g.cs
@@ -0,0 +1,197 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAPublicKey", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAPublicKey : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanEncryptUsingSecKeyAlgorithm_ = "canEncryptUsingSecKeyAlgorithm:";
+ static readonly IntPtr selCanEncryptUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canEncryptUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCanVerifyUsingSecKeyAlgorithm_ = "canVerifyUsingSecKeyAlgorithm:";
+ static readonly IntPtr selCanVerifyUsingSecKeyAlgorithm_Handle = Selector.GetHandle ("canVerifyUsingSecKeyAlgorithm:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selEncryptData_SecKeyAlgorithm_Completion_ = "encryptData:secKeyAlgorithm:completion:";
+ static readonly IntPtr selEncryptData_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("encryptData:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selExportBytesWithCompletion_ = "exportBytesWithCompletion:";
+ static readonly IntPtr selExportBytesWithCompletion_Handle = Selector.GetHandle ("exportBytesWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selVerifyData_Signature_SecKeyAlgorithm_Completion_ = "verifyData:signature:secKeyAlgorithm:completion:";
+ static readonly IntPtr selVerifyData_Signature_SecKeyAlgorithm_Completion_Handle = Selector.GetHandle ("verifyData:signature:secKeyAlgorithm:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAPublicKey");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAPublicKey (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAPublicKey (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("canEncryptUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanEncrypt (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanEncryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanEncryptUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("canVerifyUsingSecKeyAlgorithm:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanVerify (global::Security.SecKeyAlgorithm algorithm)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_int (this.Handle, selCanVerifyUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_int (this.SuperHandle, selCanVerifyUsingSecKeyAlgorithm_Handle, (int)algorithm);
+ }
+ }
+ [Export ("encryptData:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Encrypt (NSData data, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ var data__handle__ = data!.GetNonNullHandle (nameof (data));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_int_IntPtr (this.Handle, selEncryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_int_IntPtr (this.SuperHandle, selEncryptData_SecKeyAlgorithm_Completion_Handle, data__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> EncryptAsync (NSData data, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ Encrypt(data, algorithm, (data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("exportBytesWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void ExportBytes ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyCompletionHandler))]LAPublicKeyCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selExportBytesWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selExportBytesWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> ExportBytesAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ ExportBytes((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("verifyData:signature:secKeyAlgorithm:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Verify (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAPublicKeyVerifyDataCompletionHandler))]LAPublicKeyVerifyDataCompletionHandler handler)
+ {
+ var signedData__handle__ = signedData!.GetNonNullHandle (nameof (signedData));
+ var signature__handle__ = signature!.GetNonNullHandle (nameof (signature));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLAPublicKeyVerifyDataCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_int_IntPtr (this.Handle, selVerifyData_Signature_SecKeyAlgorithm_Completion_Handle, signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_int_IntPtr (this.SuperHandle, selVerifyData_Signature_SecKeyAlgorithm_Completion_Handle, signedData__handle__, signature__handle__, (int)algorithm, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task VerifyAsync (NSData signedData, NSData signature, global::Security.SecKeyAlgorithm algorithm)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Verify(signedData, signature, algorithm, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ } /* class LAPublicKey */
+}
diff --git a/new/mac/mobile/LocalAuthentication/LARight.g.cs b/new/mac/mobile/LocalAuthentication/LARight.g.cs
new file mode 100644
index 0000000..0c573ec
--- /dev/null
+++ b/new/mac/mobile/LocalAuthentication/LARight.g.cs
@@ -0,0 +1,237 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARight", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LARight : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selAuthorizeWithLocalizedReason_Completion_ = "authorizeWithLocalizedReason:completion:";
+ static readonly IntPtr selAuthorizeWithLocalizedReason_Completion_Handle = Selector.GetHandle ("authorizeWithLocalizedReason:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selCheckCanAuthorizeWithCompletion_ = "checkCanAuthorizeWithCompletion:";
+ static readonly IntPtr selCheckCanAuthorizeWithCompletion_Handle = Selector.GetHandle ("checkCanAuthorizeWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selDeauthorizeWithCompletion_ = "deauthorizeWithCompletion:";
+ static readonly IntPtr selDeauthorizeWithCompletion_Handle = Selector.GetHandle ("deauthorizeWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selInitWithRequirement_ = "initWithRequirement:";
+ static readonly IntPtr selInitWithRequirement_Handle = Selector.GetHandle ("initWithRequirement:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSetTag_ = "setTag:";
+ static readonly IntPtr selSetTag_Handle = Selector.GetHandle ("setTag:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selState = "state";
+ static readonly IntPtr selStateHandle = Selector.GetHandle ("state");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selTag = "tag";
+ static readonly IntPtr selTagHandle = Selector.GetHandle ("tag");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LARight");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LARight () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.Init), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.Init), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARight (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARight (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithRequirement:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public LARight (LAAuthenticationRequirement requirement)
+ : base (NSObjectFlag.Empty)
+ {
+ var requirement__handle__ = requirement!.GetNonNullHandle (nameof (requirement));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, selInitWithRequirement_Handle, requirement__handle__), "initWithRequirement:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, selInitWithRequirement_Handle, requirement__handle__), "initWithRequirement:");
+ }
+ }
+ [Export ("authorizeWithLocalizedReason:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Authorize (string localizedReason, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ if (localizedReason is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (localizedReason));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nslocalizedReason = CFString.CreateNative (localizedReason);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selAuthorizeWithLocalizedReason_Completion_Handle, nslocalizedReason, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selAuthorizeWithLocalizedReason_Completion_Handle, nslocalizedReason, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nslocalizedReason);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task AuthorizeAsync (string localizedReason)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Authorize(localizedReason, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("checkCanAuthorizeWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void CheckCanAuthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightAuthorizeCompletionHandler))]LARightAuthorizeCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightAuthorizeCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selCheckCanAuthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selCheckCanAuthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task CheckCanAuthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ CheckCanAuthorize((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("deauthorizeWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Deauthorize ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDAction))]global::System.Action handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDAction.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selDeauthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selDeauthorizeWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task DeauthorizeAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Deauthorize(() => {
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual LARightState State {
+ [Export ("state")]
+ get {
+ LARightState ret;
+ if (IsDirectBinding) {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selStateHandle);
+ } else {
+ ret = (LocalAuthentication.LARightState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selStateHandle);
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual nint Tag {
+ [Export ("tag")]
+ get {
+ if (IsDirectBinding) {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, selTagHandle);
+ } else {
+ return (nint) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, selTagHandle);
+ }
+ }
+ [Export ("setTag:")]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selSetTag_Handle, (IntPtr) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selSetTag_Handle, (IntPtr) value);
+ }
+ }
+ }
+ } /* class LARight */
+}
diff --git a/new/mac/mobile/LocalAuthentication/LARightState.g.cs b/new/mac/mobile/LocalAuthentication/LARightState.g.cs
new file mode 100644
index 0000000..ccecb24
--- /dev/null
+++ b/new/mac/mobile/LocalAuthentication/LARightState.g.cs
@@ -0,0 +1,58 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum LARightState : long {
+ Unknown = 0,
+ Authorizing = 1,
+ Authorized = 2,
+ NotAuthorized = 3,
+ }
+}
diff --git a/new/mac/mobile/LocalAuthentication/LARightStore.g.cs b/new/mac/mobile/LocalAuthentication/LARightStore.g.cs
new file mode 100644
index 0000000..c14aea3
--- /dev/null
+++ b/new/mac/mobile/LocalAuthentication/LARightStore.g.cs
@@ -0,0 +1,299 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LARightStore", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LARightStore : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRemoveAllRightsWithCompletion_ = "removeAllRightsWithCompletion:";
+ static readonly IntPtr selRemoveAllRightsWithCompletion_Handle = Selector.GetHandle ("removeAllRightsWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRemoveRight_Completion_ = "removeRight:completion:";
+ static readonly IntPtr selRemoveRight_Completion_Handle = Selector.GetHandle ("removeRight:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRemoveRightForIdentifier_Completion_ = "removeRightForIdentifier:completion:";
+ static readonly IntPtr selRemoveRightForIdentifier_Completion_Handle = Selector.GetHandle ("removeRightForIdentifier:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selRightForIdentifier_Completion_ = "rightForIdentifier:completion:";
+ static readonly IntPtr selRightForIdentifier_Completion_Handle = Selector.GetHandle ("rightForIdentifier:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSaveRight_Identifier_Completion_ = "saveRight:identifier:completion:";
+ static readonly IntPtr selSaveRight_Identifier_Completion_Handle = Selector.GetHandle ("saveRight:identifier:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSaveRight_Identifier_Secret_Completion_ = "saveRight:identifier:secret:completion:";
+ static readonly IntPtr selSaveRight_Identifier_Secret_Completion_Handle = Selector.GetHandle ("saveRight:identifier:secret:completion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selSharedStore = "sharedStore";
+ static readonly IntPtr selSharedStoreHandle = Selector.GetHandle ("sharedStore");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LARightStore");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LARightStore (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LARightStore (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("rightForIdentifier:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Get (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> GetAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Get(identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRight:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (LAPersistedRight right, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selRemoveRight_Completion_Handle, right__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selRemoveRight_Completion_Handle, right__handle__, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (LAPersistedRight right)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(right, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeRightForIdentifier:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Remove (string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr (this.Handle, selRemoveRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, selRemoveRightForIdentifier_Completion_Handle, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAsync (string identifier)
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ Remove(identifier, (error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("removeAllRightsWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void RemoveAll ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreRemoveRightCompletionHandler))]LARightStoreRemoveRightCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreRemoveRightCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selRemoveAllRightsWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selRemoveAllRightsWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task RemoveAllAsync ()
+ {
+ var tcs = new TaskCompletionSource<bool> ();
+ RemoveAll((error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (true);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, selSaveRight_Identifier_Completion_Handle, right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, selSaveRight_Identifier_Completion_Handle, right__handle__, nsidentifier, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [Export ("saveRight:identifier:secret:completion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void Save (LARight right, string identifier, NSData secret, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLARightStoreCompletionHandler))]LARightStoreCompletionHandler handler)
+ {
+ var right__handle__ = right!.GetNonNullHandle (nameof (right));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var secret__handle__ = secret!.GetNonNullHandle (nameof (secret));
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ var nsidentifier = CFString.CreateNative (identifier);
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLARightStoreCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (this.Handle, selSaveRight_Identifier_Secret_Completion_Handle, right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr (this.SuperHandle, selSaveRight_Identifier_Secret_Completion_Handle, right__handle__, nsidentifier, secret__handle__, (IntPtr) block_ptr_handler);
+ }
+ CFString.ReleaseNative (nsidentifier);
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<LAPersistedRight> SaveAsync (LARight right, string identifier, NSData secret)
+ {
+ var tcs = new TaskCompletionSource<LAPersistedRight> ();
+ Save(right, identifier, secret, (right_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (right_!);
+ });
+ return tcs.Task;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public static LARightStore SharedStore {
+ [Export ("sharedStore")]
+ get {
+ LARightStore? ret;
+ ret = Runtime.GetNSObject<LARightStore> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (class_ptr, selSharedStoreHandle))!;
+ return ret!;
+ }
+ }
+ } /* class LARightStore */
+}
diff --git a/new/mac/mobile/LocalAuthentication/LASecret.g.cs b/new/mac/mobile/LocalAuthentication/LASecret.g.cs
new file mode 100644
index 0000000..b31be24
--- /dev/null
+++ b/new/mac/mobile/LocalAuthentication/LASecret.g.cs
@@ -0,0 +1,102 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using QTKit;
+using Metal;
+using CoreML;
+using OpenGL;
+using AppKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using CloudKit;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LASecret", true)]
+ [Introduced (PlatformName.MacOSX, 13,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacCatalyst, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LASecret : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ const string selLoadDataWithCompletion_ = "loadDataWithCompletion:";
+ static readonly IntPtr selLoadDataWithCompletion_Handle = Selector.GetHandle ("loadDataWithCompletion:");
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LASecret");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LASecret (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LASecret (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("loadDataWithCompletion:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void LoadData ([BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLASecretCompletionHandler))]LASecretCompletionHandler handler)
+ {
+ if (handler is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (handler));
+ BlockLiteral *block_ptr_handler;
+ BlockLiteral block_handler;
+ block_handler = new BlockLiteral ();
+ block_ptr_handler = &block_handler;
+ block_handler.SetupBlockUnsafe (Trampolines.SDLASecretCompletionHandler.Handler, handler);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, selLoadDataWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, selLoadDataWithCompletion_Handle, (IntPtr) block_ptr_handler);
+ }
+ block_ptr_handler->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<NSData> LoadDataAsync ()
+ {
+ var tcs = new TaskCompletionSource<NSData> ();
+ LoadData((data_, error_) => {
+ if (error_ != null)
+ tcs.SetException (new NSErrorException(error_));
+ else
+ tcs.SetResult (data_!);
+ });
+ return tcs.Task;
+ }
+ } /* class LASecret */
+}
diff --git a/old/mac/mobile/LocalAuthentication/LAStatus.g.cs b/new/mac/mobile/LocalAuthentication/LAStatus.g.cs
index 8dad1b7..981b681 100644
--- a/old/mac/mobile/LocalAuthentication/LAStatus.g.cs
+++ b/new/mac/mobile/LocalAuthentication/LAStatus.g.cs
@@ -45,6 +45,7 @@ using NativeHandle = System.IntPtr;
namespace LocalAuthentication {
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Native ("LAError")]
public enum LAStatus : long {
Success = 0,
@@ -65,32 +66,32 @@ namespace LocalAuthentication {
AppCancel = -9,
InvalidContext = -10,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
WatchNotAvailable = -11,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
BiometryNotPaired = -12,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
BiometryDisconnected = -13,
[Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
- [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
[Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
InvalidDimension = -14,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
BiometryNotAvailable = -6,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
BiometryNotEnrolled = -7,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
BiometryLockout = -8,
NotInteractive = -1004,
}
[Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
[Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
static public partial class LAStatusExtensions {
[Field ("LAErrorDomain", "LocalAuthentication")]
diff --git a/old/mac/mobile/ObjCRuntime/Messaging.g.cs b/new/mac/mobile/ObjCRuntime/Messaging.g.cs
index c5f4158..631b61c 100644
--- a/old/mac/mobile/ObjCRuntime/Messaging.g.cs
+++ b/new/mac/mobile/ObjCRuntime/Messaging.g.cs
@@ -4949,6 +4949,24 @@ namespace ObjCRuntime {
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static global::System.IntPtr IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_UIntPtr_IntPtr_IntPtr_IntPtr_IntPtr_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, IntPtr arg3, UIntPtr arg4, IntPtr arg5, IntPtr arg6, IntPtr arg7, IntPtr arg8, IntPtr arg9);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSend_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ [return: MarshalAs (UnmanagedType.I1)]
+ public extern static bool bool_objc_msgSendSuper_int (IntPtr receiver, IntPtr selector, int arg1);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_IntPtr_int_IntPtr_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_IntPtr_int_IntPtr_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, int arg2, IntPtr arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
+ public extern static void void_objc_msgSend_IntPtr_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
+ public extern static void void_objc_msgSendSuper_IntPtr_IntPtr_int_IntPtr (IntPtr receiver, IntPtr selector, IntPtr arg1, IntPtr arg2, int arg3, IntPtr arg4);
+ [DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSend")]
public extern static IntPtr IntPtr_objc_msgSend_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
[DllImport (LIBOBJC_DYLIB, EntryPoint="objc_msgSendSuper")]
public extern static IntPtr IntPtr_objc_msgSendSuper_int_float (IntPtr receiver, IntPtr selector, int arg1, float arg2);
diff --git a/old/mac/mobile/ObjCRuntime/Trampolines.g.cs b/new/mac/mobile/ObjCRuntime/Trampolines.g.cs
index 79e95c4..4c03649 100644
--- a/old/mac/mobile/ObjCRuntime/Trampolines.g.cs
+++ b/new/mac/mobile/ObjCRuntime/Trampolines.g.cs
@@ -9901,6 +9901,283 @@ namespace ObjCRuntime {
}
} /* class NIDLAContextReplyHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPrivateKeyCompletionHandler))]
+ internal delegate void DLAPrivateKeyCompletionHandler (IntPtr block, IntPtr data, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPrivateKeyCompletionHandler {
+ static internal readonly DLAPrivateKeyCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLAPrivateKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr data, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPrivateKeyCompletionHandler */
+ internal sealed class NIDLAPrivateKeyCompletionHandler : TrampolineBlockBase {
+ DLAPrivateKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPrivateKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPrivateKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPrivateKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPrivateKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPrivateKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPrivateKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyCompletionHandler))]
+ internal delegate void DLAPublicKeyCompletionHandler (IntPtr block, IntPtr data, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyCompletionHandler {
+ static internal readonly DLAPublicKeyCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLAPublicKeyCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr data, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyCompletionHandler */
+ internal sealed class NIDLAPublicKeyCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLAPublicKeyCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler))]
+ internal delegate void DLAPublicKeyVerifyDataCompletionHandler (IntPtr block, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAPublicKeyVerifyDataCompletionHandler {
+ static internal readonly DLAPublicKeyVerifyDataCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLAPublicKeyVerifyDataCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAPublicKeyVerifyDataCompletionHandler */
+ internal sealed class NIDLAPublicKeyVerifyDataCompletionHandler : TrampolineBlockBase {
+ DLAPublicKeyVerifyDataCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAPublicKeyVerifyDataCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAPublicKeyVerifyDataCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAPublicKeyVerifyDataCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLAPublicKeyVerifyDataCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightAuthorizeCompletionHandler))]
+ internal delegate void DLARightAuthorizeCompletionHandler (IntPtr block, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightAuthorizeCompletionHandler {
+ static internal readonly DLARightAuthorizeCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLARightAuthorizeCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightAuthorizeCompletionHandler */
+ internal sealed class NIDLARightAuthorizeCompletionHandler : TrampolineBlockBase {
+ DLARightAuthorizeCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightAuthorizeCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightAuthorizeCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightAuthorizeCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightAuthorizeCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightAuthorizeCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightAuthorizeCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreCompletionHandler))]
+ internal delegate void DLARightStoreCompletionHandler (IntPtr block, IntPtr right, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreCompletionHandler {
+ static internal readonly DLARightStoreCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLARightStoreCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr right, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<LocalAuthentication.LAPersistedRight> (right)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreCompletionHandler */
+ internal sealed class NIDLARightStoreCompletionHandler : TrampolineBlockBase {
+ DLARightStoreCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (global::LocalAuthentication.LAPersistedRight? right, NSError? error)
+ {
+ var right__handle__ = right.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, right__handle__, error__handle__);
+ }
+ } /* class NIDLARightStoreCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler))]
+ internal delegate void DLARightStoreRemoveRightCompletionHandler (IntPtr block, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLARightStoreRemoveRightCompletionHandler {
+ static internal readonly DLARightStoreRemoveRightCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLARightStoreRemoveRightCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLARightStoreRemoveRightCompletionHandler */
+ internal sealed class NIDLARightStoreRemoveRightCompletionHandler : TrampolineBlockBase {
+ DLARightStoreRemoveRightCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLARightStoreRemoveRightCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLARightStoreRemoveRightCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LARightStoreRemoveRightCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLARightStoreRemoveRightCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSError? error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, error__handle__);
+ }
+ } /* class NIDLARightStoreRemoveRightCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LASecretCompletionHandler))]
+ internal delegate void DLASecretCompletionHandler (IntPtr block, IntPtr data, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLASecretCompletionHandler {
+ static internal readonly DLASecretCompletionHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLASecretCompletionHandler))]
+ static unsafe void Invoke (IntPtr block, IntPtr data, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) (descriptor->Target);
+ if (del != null)
+ del ( Runtime.GetNSObject<NSData> (data)!, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLASecretCompletionHandler */
+ internal sealed class NIDLASecretCompletionHandler : TrampolineBlockBase {
+ DLASecretCompletionHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLASecretCompletionHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLASecretCompletionHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LASecretCompletionHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LASecretCompletionHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLASecretCompletionHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (NSData? data, NSError? error)
+ {
+ var data__handle__ = data.GetHandle ();
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, data__handle__, error__handle__);
+ }
+ } /* class NIDLASecretCompletionHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::MLCompute.MLCGraphCompletionHandler))]
internal delegate void DMLCGraphCompletionHandler (IntPtr block, IntPtr resultTensor, IntPtr error, double executionTime);
//
diff --git a/old/mac/mobile/SupportDelegates.g.cs b/new/mac/mobile/SupportDelegates.g.cs
index 361e15e..286ecb0 100644
--- a/old/mac/mobile/SupportDelegates.g.cs
+++ b/new/mac/mobile/SupportDelegates.g.cs
@@ -484,6 +484,13 @@ namespace JavaScriptCore {
namespace LocalAuthentication {
#nullable enable
public delegate void LAContextReplyHandler (bool success, NSError error);
+ public delegate void LAPrivateKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyCompletionHandler (NSData? data, NSError? error);
+ public delegate void LAPublicKeyVerifyDataCompletionHandler (NSError? error);
+ public delegate void LARightAuthorizeCompletionHandler (NSError? error);
+ public delegate void LARightStoreCompletionHandler (LocalAuthentication.LAPersistedRight? right, NSError? error);
+ public delegate void LARightStoreRemoveRightCompletionHandler (NSError? error);
+ public delegate void LASecretCompletionHandler (NSData? data, NSError? error);
}
namespace MLCompute {
#nullable enable
diff --git a/new/watch/watch/LocalAuthentication/LAAccessControlOperation.g.cs b/new/watch/watch/LocalAuthentication/LAAccessControlOperation.g.cs
new file mode 100644
index 0000000..0bd97b0
--- /dev/null
+++ b/new/watch/watch/LocalAuthentication/LAAccessControlOperation.g.cs
@@ -0,0 +1,49 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using CoreML;
+using Network;
+using SceneKit;
+using Contacts;
+using CoreVideo;
+using CoreMedia;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreFoundation;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum LAAccessControlOperation : long {
+ CreateItem = 0,
+ UseItem = 1,
+ CreateKey = 2,
+ UseKeySign = 3,
+ [Introduced (PlatformName.iOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,12, ObjCRuntime.PlatformArchitecture.All)]
+ UseKeyDecrypt = 4,
+ [Introduced (PlatformName.iOS, 10,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,12, ObjCRuntime.PlatformArchitecture.All)]
+ UseKeyKeyExchange = 5,
+ }
+}
diff --git a/new/watch/watch/LocalAuthentication/LAContext.g.cs b/new/watch/watch/LocalAuthentication/LAContext.g.cs
new file mode 100644
index 0000000..203e63f
--- /dev/null
+++ b/new/watch/watch/LocalAuthentication/LAContext.g.cs
@@ -0,0 +1,289 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using CoreML;
+using Network;
+using SceneKit;
+using Contacts;
+using CoreVideo;
+using CoreMedia;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreFoundation;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Register("LAContext", true)]
+ [Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class LAContext : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static readonly IntPtr class_ptr = Class.GetHandle ("LAContext");
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public LAContext () : base (NSObjectFlag.Empty)
+ {
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected LAContext (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal LAContext (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("canEvaluatePolicy:error:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool CanEvaluatePolicy (LAPolicy policy, out NSError error)
+ {
+ IntPtr errorValue = IntPtr.Zero;
+ bool ret;
+ if (IsDirectBinding) {
+ ret = global::ObjCRuntime.Messaging.bool_objc_msgSend_IntPtr_ref_IntPtr (this.Handle, Selector.GetHandle ("canEvaluatePolicy:error:"), (IntPtr) (long) policy, ref errorValue);
+ } else {
+ ret = global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_IntPtr_ref_IntPtr (this.SuperHandle, Selector.GetHandle ("canEvaluatePolicy:error:"), (IntPtr) (long) policy, ref errorValue);
+ }
+ error = Runtime.GetNSObject<NSError> (errorValue)!;
+ return ret!;
+ }
+ [Export ("evaluateAccessControl:operation:localizedReason:reply:")]
+ [Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void EvaluateAccessControl (global::Security.SecAccessControl accessControl, LAAccessControlOperation operation, string localizedReason, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDActionArity2V10))]global::System.Action<bool, NSError> reply)
+ {
+ var accessControl__handle__ = accessControl!.GetNonNullHandle (nameof (accessControl));
+ if (localizedReason is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (localizedReason));
+ if (reply is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (reply));
+ var nslocalizedReason = CFString.CreateNative (localizedReason);
+ BlockLiteral *block_ptr_reply;
+ BlockLiteral block_reply;
+ block_reply = new BlockLiteral ();
+ block_ptr_reply = &block_reply;
+ block_reply.SetupBlockUnsafe (Trampolines.SDActionArity2V10.Handler, reply);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("evaluateAccessControl:operation:localizedReason:reply:"), accessControl.Handle, (IntPtr) (long) operation, nslocalizedReason, (IntPtr) block_ptr_reply);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("evaluateAccessControl:operation:localizedReason:reply:"), accessControl.Handle, (IntPtr) (long) operation, nslocalizedReason, (IntPtr) block_ptr_reply);
+ }
+ CFString.ReleaseNative (nslocalizedReason);
+ block_ptr_reply->CleanupBlock ();
+ }
+ [Export ("evaluatePolicy:localizedReason:reply:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual void EvaluatePolicy (LAPolicy policy, string localizedReason, [BlockProxy (typeof (ObjCRuntime.Trampolines.NIDLAContextReplyHandler))]LAContextReplyHandler reply)
+ {
+ if (localizedReason is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (localizedReason));
+ if (reply is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (reply));
+ var nslocalizedReason = CFString.CreateNative (localizedReason);
+ BlockLiteral *block_ptr_reply;
+ BlockLiteral block_reply;
+ block_reply = new BlockLiteral ();
+ block_ptr_reply = &block_reply;
+ block_reply.SetupBlockUnsafe (Trampolines.SDLAContextReplyHandler.Handler, reply);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("evaluatePolicy:localizedReason:reply:"), (IntPtr) (long) policy, nslocalizedReason, (IntPtr) block_ptr_reply);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("evaluatePolicy:localizedReason:reply:"), (IntPtr) (long) policy, nslocalizedReason, (IntPtr) block_ptr_reply);
+ }
+ CFString.ReleaseNative (nslocalizedReason);
+ block_ptr_reply->CleanupBlock ();
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe virtual Task<Tuple<bool,NSError>> EvaluatePolicyAsync (LAPolicy policy, string localizedReason)
+ {
+ var tcs = new TaskCompletionSource<Tuple<bool,NSError>> ();
+ EvaluatePolicy(policy, localizedReason, (success_, error_) => {
+ tcs.SetResult (new Tuple<bool,NSError> (success_, error_));
+ });
+ return tcs.Task;
+ }
+ [Export ("invalidate")]
+ [Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void Invalidate ()
+ {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend (this.Handle, Selector.GetHandle ("invalidate"));
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("invalidate"));
+ }
+ }
+ [Export ("isCredentialSet:")]
+ [Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool IsCredentialSet (LACredentialType type)
+ {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("isCredentialSet:"), (IntPtr) (long) type);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("isCredentialSet:"), (IntPtr) (long) type);
+ }
+ }
+ [Export ("setCredential:type:")]
+ [Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual bool SetCredentialType (NSData? credential, LACredentialType type)
+ {
+ var credential__handle__ = credential.GetHandle ();
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("setCredential:type:"), credential__handle__, (IntPtr) (long) type);
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("setCredential:type:"), credential__handle__, (IntPtr) (long) type);
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual NSData? EvaluatedPolicyDomainState {
+ [Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("evaluatedPolicyDomainState")]
+ get {
+ NSData? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("evaluatedPolicyDomainState")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("evaluatedPolicyDomainState")))!;
+ }
+ return ret!;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual bool InteractionNotAllowed {
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("interactionNotAllowed")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSend (this.Handle, Selector.GetHandle ("interactionNotAllowed"));
+ } else {
+ return global::ObjCRuntime.Messaging.bool_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("interactionNotAllowed"));
+ }
+ }
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,13, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 11,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setInteractionNotAllowed:")]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_bool (this.Handle, Selector.GetHandle ("setInteractionNotAllowed:"), value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_bool (this.SuperHandle, Selector.GetHandle ("setInteractionNotAllowed:"), value);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 8,3, ObjCRuntime.PlatformArchitecture.All)]
+ [Deprecated (PlatformName.iOS, 9,0)]
+ [Introduced (PlatformName.MacOSX, 10,10,3, ObjCRuntime.PlatformArchitecture.All)]
+ [Deprecated (PlatformName.MacOSX, 10,11)]
+ public virtual NSNumber? MaxBiometryFailures {
+ [Introduced (PlatformName.iOS, 8,3, ObjCRuntime.PlatformArchitecture.All)]
+ [Deprecated (PlatformName.iOS, 9,0)]
+ [Introduced (PlatformName.MacOSX, 10,10,3, ObjCRuntime.PlatformArchitecture.All)]
+ [Deprecated (PlatformName.MacOSX, 10,11)]
+ [Export ("maxBiometryFailures")]
+ get {
+ NSNumber? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSNumber> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("maxBiometryFailures")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSNumber> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("maxBiometryFailures")))!;
+ }
+ return ret!;
+ }
+ [Introduced (PlatformName.iOS, 8,3, ObjCRuntime.PlatformArchitecture.All)]
+ [Deprecated (PlatformName.iOS, 9,0)]
+ [Introduced (PlatformName.MacOSX, 10,10,3, ObjCRuntime.PlatformArchitecture.All)]
+ [Deprecated (PlatformName.MacOSX, 10,11)]
+ [Export ("setMaxBiometryFailures:")]
+ set {
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setMaxBiometryFailures:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setMaxBiometryFailures:"), value__handle__);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,12,4, ObjCRuntime.PlatformArchitecture.All)]
+ public virtual double TouchIdAuthenticationAllowableReuseDuration {
+ [Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,12,4, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("touchIDAuthenticationAllowableReuseDuration")]
+ get {
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.Double_objc_msgSend (this.Handle, Selector.GetHandle ("touchIDAuthenticationAllowableReuseDuration"));
+ } else {
+ return global::ObjCRuntime.Messaging.Double_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("touchIDAuthenticationAllowableReuseDuration"));
+ }
+ }
+ [Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,12,4, ObjCRuntime.PlatformArchitecture.All)]
+ [Export ("setTouchIDAuthenticationAllowableReuseDuration:")]
+ set {
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_Double (this.Handle, Selector.GetHandle ("setTouchIDAuthenticationAllowableReuseDuration:"), value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_Double (this.SuperHandle, Selector.GetHandle ("setTouchIDAuthenticationAllowableReuseDuration:"), value);
+ }
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _ErrorDomain;
+ [Field ("LAErrorDomain", "LocalAuthentication")]
+ [Introduced (PlatformName.iOS, 8,3, ObjCRuntime.PlatformArchitecture.All)]
+ public static NSString ErrorDomain {
+ [Introduced (PlatformName.iOS, 8,3, ObjCRuntime.PlatformArchitecture.All)]
+ get {
+ if (_ErrorDomain is null)
+ _ErrorDomain = Dlfcn.GetStringConstant (Libraries.LocalAuthentication.Handle, "LAErrorDomain")!;
+ return _ErrorDomain;
+ }
+ }
+ } /* class LAContext */
+}
diff --git a/new/watch/watch/LocalAuthentication/LACredentialType.g.cs b/new/watch/watch/LocalAuthentication/LACredentialType.g.cs
new file mode 100644
index 0000000..0e0a82e
--- /dev/null
+++ b/new/watch/watch/LocalAuthentication/LACredentialType.g.cs
@@ -0,0 +1,45 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using CoreML;
+using Network;
+using SceneKit;
+using Contacts;
+using CoreVideo;
+using CoreMedia;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreFoundation;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Introduced (PlatformName.iOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,11, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 3,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum LACredentialType : long {
+ ApplicationPassword = 0,
+ [Introduced (PlatformName.iOS, 13,4, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,15,4, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ SmartCardPin = -3,
+ }
+}
diff --git a/new/watch/watch/LocalAuthentication/LAPolicy.g.cs b/new/watch/watch/LocalAuthentication/LAPolicy.g.cs
new file mode 100644
index 0000000..ce4e9b3
--- /dev/null
+++ b/new/watch/watch/LocalAuthentication/LAPolicy.g.cs
@@ -0,0 +1,61 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using CoreML;
+using Network;
+using SceneKit;
+using Contacts;
+using CoreVideo;
+using CoreMedia;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreFoundation;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum LAPolicy : long {
+ [Introduced (PlatformName.MacOSX, 10,12,2, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ DeviceOwnerAuthenticationWithBiometrics = 1,
+ DeviceOwnerAuthentication = 2,
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ DeviceOwnerAuthenticationWithWatch = 3,
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ DeviceOwnerAuthenticationWithBiometricsOrWatch = 4,
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,15, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Obsolete ("Use DeviceOwnerAuthenticationWithBiometricsOrWatch enum value instead.", false)]
+ OwnerAuthenticationWithBiometricsOrWatch = 4,
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.WatchOS, 9,0, ObjCRuntime.PlatformArchitecture.All)]
+ DeviceOwnerAuthenticationWithWristDetection = 5,
+ }
+}
diff --git a/new/watch/watch/LocalAuthentication/LAStatus.g.cs b/new/watch/watch/LocalAuthentication/LAStatus.g.cs
new file mode 100644
index 0000000..18b1d03
--- /dev/null
+++ b/new/watch/watch/LocalAuthentication/LAStatus.g.cs
@@ -0,0 +1,93 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using CoreML;
+using Network;
+using SceneKit;
+using Contacts;
+using CoreVideo;
+using CoreMedia;
+using SpriteKit;
+using Foundation;
+using ObjCRuntime;
+using MediaPlayer;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using CoreFoundation;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace LocalAuthentication {
+ [Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native ("LAError")]
+ public enum LAStatus : long {
+ Success = 0,
+ AuthenticationFailed = -1,
+ UserCancel = -2,
+ UserFallback = -3,
+ SystemCancel = -4,
+ PasscodeNotSet = -5,
+ [Deprecated (PlatformName.iOS, 11,0, message: "Use 'BiometryNotAvailable' instead.")]
+ [Deprecated (PlatformName.MacOSX, 10,13, message: "Use 'BiometryNotAvailable' instead.")]
+ TouchIDNotAvailable = -6,
+ [Deprecated (PlatformName.iOS, 11,0, message: "Use 'BiometryNotEnrolled' instead.")]
+ [Deprecated (PlatformName.MacOSX, 10,13, message: "Use 'BiometryNotEnrolled' instead.")]
+ TouchIDNotEnrolled = -7,
+ [Deprecated (PlatformName.iOS, 11,0, message: "Use 'BiometryLockout' instead.")]
+ [Deprecated (PlatformName.MacOSX, 10,13, message: "Use 'BiometryLockout' instead.")]
+ TouchIDLockout = -8,
+ AppCancel = -9,
+ InvalidContext = -10,
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ WatchNotAvailable = -11,
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ BiometryNotPaired = -12,
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ BiometryDisconnected = -13,
+ [Unavailable (PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ InvalidDimension = -14,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ BiometryNotAvailable = -6,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ BiometryNotEnrolled = -7,
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ BiometryLockout = -8,
+ NotInteractive = -1004,
+ }
+ [Introduced (PlatformName.iOS, 8,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.MacOSX, 10,10, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class LAStatusExtensions {
+ [Field ("LAErrorDomain", "LocalAuthentication")]
+ static NSString? _domain;
+ public static NSString? GetDomain (this LAStatus self)
+ {
+ if (_domain is null)
+ _domain = Dlfcn.GetStringConstant (Libraries.LocalAuthentication.Handle, "LAErrorDomain");
+ return _domain;
+ }
+ }
+}
diff --git a/old/watch/watch/ObjCRuntime/Libraries.g.cs b/new/watch/watch/ObjCRuntime/Libraries.g.cs
index a6dedfc..d28c711 100644
--- a/old/watch/watch/ObjCRuntime/Libraries.g.cs
+++ b/new/watch/watch/ObjCRuntime/Libraries.g.cs
@@ -110,6 +110,9 @@ namespace ObjCRuntime {
static public class Intents {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.IntentsLibrary, 0);
}
+ static public class LocalAuthentication {
+ static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.LocalAuthenticationLibrary, 0);
+ }
static public class MapKit {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.MapKitLibrary, 0);
}
diff --git a/old/watch/watch/ObjCRuntime/Trampolines.g.cs b/new/watch/watch/ObjCRuntime/Trampolines.g.cs
index 76faed6..341c3b5 100644
--- a/old/watch/watch/ObjCRuntime/Trampolines.g.cs
+++ b/new/watch/watch/ObjCRuntime/Trampolines.g.cs
@@ -5701,6 +5701,45 @@ namespace ObjCRuntime {
}
} /* class NIDINVoiceShortcutCenterGetVoiceShortcutsHandler */
[UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
+ [UserDelegateType (typeof (global::LocalAuthentication.LAContextReplyHandler))]
+ internal delegate void DLAContextReplyHandler (IntPtr block, bool success, IntPtr error);
+ //
+ // This class bridges native block invocations that call into C#
+ //
+ static internal class SDLAContextReplyHandler {
+ static internal readonly DLAContextReplyHandler Handler = Invoke;
+ [MonoPInvokeCallback (typeof (DLAContextReplyHandler))]
+ static unsafe void Invoke (IntPtr block, bool success, IntPtr error) {
+ var descriptor = (BlockLiteral *) block;
+ var del = (global::LocalAuthentication.LAContextReplyHandler) (descriptor->Target);
+ if (del != null)
+ del (success, Runtime.GetNSObject<NSError> (error)!);
+ }
+ } /* class SDLAContextReplyHandler */
+ internal sealed class NIDLAContextReplyHandler : TrampolineBlockBase {
+ DLAContextReplyHandler invoker;
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe NIDLAContextReplyHandler (BlockLiteral *block) : base (block)
+ {
+ invoker = block->GetDelegateForBlock<DLAContextReplyHandler> ();
+ }
+ [Preserve (Conditional=true)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public unsafe static global::LocalAuthentication.LAContextReplyHandler? Create (IntPtr block)
+ {
+ if (block == IntPtr.Zero)
+ return null;
+ var del = (global::LocalAuthentication.LAContextReplyHandler) GetExistingManagedDelegate (block);
+ return del ?? new NIDLAContextReplyHandler ((BlockLiteral *) block).Invoke;
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ unsafe void Invoke (bool success, NSError error)
+ {
+ var error__handle__ = error.GetHandle ();
+ invoker (BlockPointer, success, error__handle__);
+ }
+ } /* class NIDLAContextReplyHandler */
+ [UnmanagedFunctionPointerAttribute (CallingConvention.Cdecl)]
[UserDelegateType (typeof (global::MediaPlayer.MPMediaItemEnumerator))]
internal delegate void DMPMediaItemEnumerator (IntPtr block, IntPtr property, IntPtr value, [System.Runtime.InteropServices.MarshalAs (System.Runtime.InteropServices.UnmanagedType.I1)] ref bool stop);
//
diff --git a/old/watch/watch/SupportDelegates.g.cs b/new/watch/watch/SupportDelegates.g.cs
index f0fe714..bf95c4a 100644
--- a/old/watch/watch/SupportDelegates.g.cs
+++ b/new/watch/watch/SupportDelegates.g.cs
@@ -222,6 +222,10 @@ namespace Intents {
#nullable enable
public delegate void INVoiceShortcutCenterGetVoiceShortcutsHandler (Intents.INVoiceShortcut[]? voiceShortcuts, NSError error);
}
+namespace LocalAuthentication {
+ #nullable enable
+ public delegate void LAContextReplyHandler (bool success, NSError error);
+}
namespace MediaPlayer {
#nullable enable
public delegate void MPMediaItemEnumerator (string property, NSObject value, ref bool stop);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment