LAContext.SetCredentialType(NSData, LACredentialType) Method

Definition

Attempts to set the specified credential type to the specified credential, and returns true if it succeeds.

[Foundation.Export("setCredential:type:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool SetCredentialType(Foundation.NSData? credential, LocalAuthentication.LACredentialType type);
[<Foundation.Export("setCredential:type:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetCredentialType : Foundation.NSData * LocalAuthentication.LACredentialType -> bool
override this.SetCredentialType : Foundation.NSData * LocalAuthentication.LACredentialType -> bool

Parameters

credential
NSData

To be added.

This parameter can be null.

Returns

Attributes

Applies to