Share via


LAContext.EvaluatePolicyAsync(LAPolicy, String) Method

Definition

Evaluates the specified access control policy.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError?>> EvaluatePolicyAsync(LocalAuthentication.LAPolicy policy, string localizedReason);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member EvaluatePolicyAsync : LocalAuthentication.LAPolicy * string -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.EvaluatePolicyAsync : LocalAuthentication.LAPolicy * string -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

policy
LAPolicy
localizedReason
String

Returns

A task that represents the asynchronous EvaluatePolicy operation. The value of the TResult parameter is a LocalAuthentication.LAContextReplyHandler.

Attributes

Remarks

The EvaluatePolicyAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to