iOS Guides | Samples

MonoTouch.LocalAuthentication.LAContext Class

The context in which authentication policies are evaluated.

See Also: LAContext


[MonoTouch.Foundation.Register("LAContext", true)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 8, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.MacOSX, 10, 10, MonoTouch.ObjCRuntime.PlatformArchitecture.Arch64, null)]
public class LAContext : NSObject

Related content


Namespace: MonoTouch.LocalAuthentication
Assembly: monotouch (in monotouch.dll)
Assembly Versions:

The members of MonoTouch.LocalAuthentication.LAContext are listed below.

See Also: NSObject

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

ClassHandleIntPtr. The handle for this class.
ErrorDomainNSString. Represents the value associated with the constant LAErrorDomain
EvaluatedPolicyDomainStateNSData. Gets the state of the policy domain after a biometric authentication success or after the policy has been evaluated.
LocalizedCancelTitleString. Gets or sets the localized title of the Cancel button in the fallback dialog.
LocalizedFallbackTitleString. Gets or sets the localized title of the fallback dialog.
TouchIdAuthenticationAllowableReuseDurationDouble. Gets or sets the time, in seconds, after a successful Touch ID authentication for which a user will not be challenged for another.
TouchIdAuthenticationMaximumAllowableReuseDurationDouble. Represents the value that is associated with the LATouchIDAuthenticationMaximumAllowableReuseDuration constant.

Public Methods

CanEvaluatePolicy(LAPolicy, out NSError) : Boolean
Preflights policy, and reports any errors in the errorout parameter.
EvaluateAccessControl(SecAccessControl, LAAccessControlOperation, String, Action<bool, MonoTouch.Foundation.NSError>)
Evaluates accessControl for the specified access control operation.
EvaluatePolicy(LAPolicy, String, LAContextReplyHandler)
Evaluates the specified access control policy.
EvaluatePolicyAsync(LAPolicy, String) : System.Threading.Tasks.Task<bool>
Evaluates the specified access control .
Stops all pending policy evaluations and renders the context unusable for further policy evaluation.
IsCredentialSet(LACredentialType) : Boolean
Returns true if the specified credential type is set.
SetCredentialType(NSData, LACredentialType) : Boolean
Attempts to set the specified credential type to the specified credential, and returns true if it succeeds.