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

API diff: Microsoft.iOS.dll

Microsoft.iOS.dll

Namespace LocalAuthentication

Type Changed: LocalAuthentication.LAPolicy

Obsoleted fields:

 [Obsolete ("Use DeviceOwnerAuthenticationWithBiometricsOrWatch enum value instead.")]
 OwnerAuthenticationWithBiometricsOrWatch = 4,

Added values:

DeviceOwnerAuthenticationWithBiometricsOrWatch = 4,
DeviceOwnerAuthenticationWithWristDetection = 5,

New Type: LocalAuthentication.LAAuthenticationRequirement

public class LAAuthenticationRequirement : Foundation.NSObject {
	// constructors
	public LAAuthenticationRequirement ();
	protected LAAuthenticationRequirement (Foundation.NSObjectFlag t);
	protected LAAuthenticationRequirement (ObjCRuntime.NativeHandle handle);
	// properties
	public static LAAuthenticationRequirement BiometryCurrentSetRequirement { get; }
	public static LAAuthenticationRequirement BiometryRequirement { get; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public static LAAuthenticationRequirement DefaultRequirement { get; }
	// methods
	public static LAAuthenticationRequirement GetBiometryRequirement (LABiometryFallbackRequirement fallback);
}

New Type: LocalAuthentication.LABiometryFallbackRequirement

public class LABiometryFallbackRequirement : Foundation.NSObject {
	// constructors
	public LABiometryFallbackRequirement ();
	protected LABiometryFallbackRequirement (Foundation.NSObjectFlag t);
	protected LABiometryFallbackRequirement (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public static LABiometryFallbackRequirement DefaultRequirement { get; }
	public static LABiometryFallbackRequirement DevicePasscodeRequirement { get; }
}

New Type: LocalAuthentication.LAPersistedRight

public class LAPersistedRight : LocalAuthentication.LARight {
	// constructors
	protected LAPersistedRight (Foundation.NSObjectFlag t);
	protected LAPersistedRight (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual LAPrivateKey Key { get; }
	public virtual LASecret Secret { get; }
}

New Type: LocalAuthentication.LAPrivateKey

public class LAPrivateKey : Foundation.NSObject {
	// constructors
	protected LAPrivateKey (Foundation.NSObjectFlag t);
	protected LAPrivateKey (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual LAPublicKey PublicKey { get; }
	// methods
	public virtual bool CanDecrypt (Security.SecKeyAlgorithm algorithm);
	public virtual bool CanExchangeKeys (Security.SecKeyAlgorithm algorithm);
	public virtual bool CanSign (Security.SecKeyAlgorithm algorithm);
	public virtual void Decrypt (Foundation.NSData data, Security.SecKeyAlgorithm algorithm, LAPrivateKeyCompletionHandler handler);
	public virtual System.Threading.Tasks.Task<Foundation.NSData> DecryptAsync (Foundation.NSData data, Security.SecKeyAlgorithm algorithm);
	public virtual void ExchangeKeys (Foundation.NSData publicKey, Security.SecKeyAlgorithm algorithm, Foundation.NSDictionary parameters, LAPrivateKeyCompletionHandler handler);
	public virtual System.Threading.Tasks.Task<Foundation.NSData> ExchangeKeysAsync (Foundation.NSData publicKey, Security.SecKeyAlgorithm algorithm, Foundation.NSDictionary parameters);
	public virtual void Sign (Foundation.NSData data, Security.SecKeyAlgorithm algorithm, LAPrivateKeyCompletionHandler handler);
	public virtual System.Threading.Tasks.Task<Foundation.NSData> SignAsync (Foundation.NSData data, Security.SecKeyAlgorithm algorithm);
}

New Type: LocalAuthentication.LAPrivateKeyCompletionHandler

public sealed delegate LAPrivateKeyCompletionHandler : System.MulticastDelegate {
	// constructors
	public LAPrivateKeyCompletionHandler (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (Foundation.NSData data, Foundation.NSError error, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (Foundation.NSData data, Foundation.NSError error);
}

New Type: LocalAuthentication.LAPublicKey

public class LAPublicKey : Foundation.NSObject {
	// constructors
	protected LAPublicKey (Foundation.NSObjectFlag t);
	protected LAPublicKey (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	// methods
	public virtual bool CanEncrypt (Security.SecKeyAlgorithm algorithm);
	public virtual bool CanVerify (Security.SecKeyAlgorithm algorithm);
	public virtual void Encrypt (Foundation.NSData data, Security.SecKeyAlgorithm algorithm, LAPublicKeyCompletionHandler handler);
	public virtual System.Threading.Tasks.Task<Foundation.NSData> EncryptAsync (Foundation.NSData data, Security.SecKeyAlgorithm algorithm);
	public virtual void ExportBytes (LAPublicKeyCompletionHandler handler);
	public virtual System.Threading.Tasks.Task<Foundation.NSData> ExportBytesAsync ();
	public virtual void Verify (Foundation.NSData signedData, Foundation.NSData signature, Security.SecKeyAlgorithm algorithm, LAPublicKeyVerifyDataCompletionHandler handler);
	public virtual System.Threading.Tasks.Task VerifyAsync (Foundation.NSData signedData, Foundation.NSData signature, Security.SecKeyAlgorithm algorithm);
}

New Type: LocalAuthentication.LAPublicKeyCompletionHandler

public sealed delegate LAPublicKeyCompletionHandler : System.MulticastDelegate {
	// constructors
	public LAPublicKeyCompletionHandler (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (Foundation.NSData data, Foundation.NSError error, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (Foundation.NSData data, Foundation.NSError error);
}

New Type: LocalAuthentication.LAPublicKeyVerifyDataCompletionHandler

public sealed delegate LAPublicKeyVerifyDataCompletionHandler : System.MulticastDelegate {
	// constructors
	public LAPublicKeyVerifyDataCompletionHandler (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (Foundation.NSError error, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (Foundation.NSError error);
}

New Type: LocalAuthentication.LARight

public class LARight : Foundation.NSObject {
	// constructors
	public LARight ();
	protected LARight (Foundation.NSObjectFlag t);
	public LARight (LAAuthenticationRequirement requirement);
	protected LARight (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual LARightState State { get; }
	public virtual nint Tag { get; set; }
	// methods
	public virtual void Authorize (string localizedReason, LARightAuthorizeCompletionHandler handler);
	public virtual System.Threading.Tasks.Task AuthorizeAsync (string localizedReason);
	public virtual void CheckCanAuthorize (LARightAuthorizeCompletionHandler handler);
	public virtual System.Threading.Tasks.Task CheckCanAuthorizeAsync ();
	public virtual void Deauthorize (System.Action handler);
	public virtual System.Threading.Tasks.Task DeauthorizeAsync ();
}

New Type: LocalAuthentication.LARightAuthorizeCompletionHandler

public sealed delegate LARightAuthorizeCompletionHandler : System.MulticastDelegate {
	// constructors
	public LARightAuthorizeCompletionHandler (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (Foundation.NSError error, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (Foundation.NSError error);
}

New Type: LocalAuthentication.LARightState

[Serializable]
public enum LARightState {
	Authorized = 2,
	Authorizing = 1,
	NotAuthorized = 3,
	Unknown = 0,
}

New Type: LocalAuthentication.LARightStore

public class LARightStore : Foundation.NSObject {
	// constructors
	protected LARightStore (Foundation.NSObjectFlag t);
	protected LARightStore (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public static LARightStore SharedStore { get; }
	// methods
	public virtual void Get (string identifier, LARightStoreCompletionHandler handler);
	public virtual System.Threading.Tasks.Task<LAPersistedRight> GetAsync (string identifier);
	public virtual void Remove (LAPersistedRight right, LARightStoreRemoveRightCompletionHandler handler);
	public virtual void Remove (string identifier, LARightStoreRemoveRightCompletionHandler handler);
	public virtual void RemoveAll (LARightStoreRemoveRightCompletionHandler handler);
	public virtual System.Threading.Tasks.Task RemoveAllAsync ();
	public virtual System.Threading.Tasks.Task RemoveAsync (LAPersistedRight right);
	public virtual System.Threading.Tasks.Task RemoveAsync (string identifier);
	public virtual void Save (LARight right, string identifier, LARightStoreCompletionHandler handler);
	public virtual void Save (LARight right, string identifier, Foundation.NSData secret, LARightStoreCompletionHandler handler);
	public virtual System.Threading.Tasks.Task<LAPersistedRight> SaveAsync (LARight right, string identifier);
	public virtual System.Threading.Tasks.Task<LAPersistedRight> SaveAsync (LARight right, string identifier, Foundation.NSData secret);
}

New Type: LocalAuthentication.LARightStoreCompletionHandler

public sealed delegate LARightStoreCompletionHandler : System.MulticastDelegate {
	// constructors
	public LARightStoreCompletionHandler (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (LAPersistedRight right, Foundation.NSError error, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (LAPersistedRight right, Foundation.NSError error);
}

New Type: LocalAuthentication.LARightStoreRemoveRightCompletionHandler

public sealed delegate LARightStoreRemoveRightCompletionHandler : System.MulticastDelegate {
	// constructors
	public LARightStoreRemoveRightCompletionHandler (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (Foundation.NSError error, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (Foundation.NSError error);
}

New Type: LocalAuthentication.LASecret

public class LASecret : Foundation.NSObject {
	// constructors
	protected LASecret (Foundation.NSObjectFlag t);
	protected LASecret (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	// methods
	public virtual void LoadData (LASecretCompletionHandler handler);
	public virtual System.Threading.Tasks.Task<Foundation.NSData> LoadDataAsync ();
}

New Type: LocalAuthentication.LASecretCompletionHandler

public sealed delegate LASecretCompletionHandler : System.MulticastDelegate {
	// constructors
	public LASecretCompletionHandler (object object, IntPtr method);
	// methods
	public virtual System.IAsyncResult BeginInvoke (Foundation.NSData data, Foundation.NSError error, System.AsyncCallback callback, object object);
	public virtual void EndInvoke (System.IAsyncResult result);
	public virtual void Invoke (Foundation.NSData data, Foundation.NSError error);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment