One Logo Pool Ball
LocalAuthentication · IOS API REFERENCE

LAContext

class · iOS 8.0+ · SDK 27.1

class LAContext

Members (22)

method · iOS 8.0+

canEvaluatePolicy

TypeScript
canEvaluatePolicy(policy: LAPolicy): { $ret: boolean; $out: { "error": (_Foundation_NSError) | null } }
Swift declaration
func canEvaluatePolicy(_ policy: LAPolicy, error: NSErrorPointer) -> Bool

Omit the output parameters from the call. The result contains $ret and $out, with error inside $out.

method · iOS 9.0+

evaluateAccessControl

TypeScript
evaluateAccessControl(accessControl: _Security_SecAccessControl, operation: LAAccessControlOperation, localizedReason: string, reply: ((arg0: boolean, arg1: (NativeError) | null) => void)): void
Swift declaration
func evaluateAccessControl(_ accessControl: SecAccessControl, operation: LAAccessControlOperation, localizedReason: String) async throws -> Bool
method · iOS 8.0+

evaluatePolicy

TypeScript
evaluatePolicy(policy: LAPolicy, localizedReason: string, reply: ((arg0: boolean, arg1: (NativeError) | null) => void)): void
Swift declaration
func evaluatePolicy(_ policy: LAPolicy, localizedReason: String) async throws -> Bool
init

init

TypeScript
static init(): LAContext
Swift declaration
init()
method · iOS 9.0+

invalidate

TypeScript
invalidate(): void
Swift declaration
func invalidate()
method · iOS 9.0+

isCredentialSet

TypeScript
isCredentialSet(type: LACredentialType): boolean
Swift declaration
func isCredentialSet(_ type: LACredentialType) -> Bool
method · iOS 9.0+

setCredential

TypeScript
setCredential(credential: (ArrayBuffer) | null, type: LACredentialType): boolean
Swift declaration
func setCredential(_ credential: Data?, type: LACredentialType) -> Bool
get · iOS 11.0+

biometryType

TypeScript
get biometryType(): LABiometryType
Swift declaration
var biometryType: LABiometryType { get }
get · iOS 18.0+

domainState

TypeScript
get domainState(): LADomainState
Swift declaration
var domainState: LADomainState { get }
get · iOS 9.0+ · Deprecated in iOS 18.0

evaluatedPolicyDomainState

TypeScript
get evaluatedPolicyDomainState(): (ArrayBuffer) | null
Swift declaration
var evaluatedPolicyDomainState: Data? { get }
get · iOS 11.0+

interactionNotAllowed

TypeScript
get interactionNotAllowed(): boolean
Swift declaration
var interactionNotAllowed: Bool { get set }
set · iOS 11.0+

interactionNotAllowed

TypeScript
set interactionNotAllowed(value: boolean)
Swift declaration
var interactionNotAllowed: Bool { get set }
get · iOS 10.0+

localizedCancelTitle

TypeScript
get localizedCancelTitle(): (string) | null
Swift declaration
var localizedCancelTitle: String? { get set }
set · iOS 10.0+

localizedCancelTitle

TypeScript
set localizedCancelTitle(value: (string) | null)
Swift declaration
var localizedCancelTitle: String? { get set }
get · iOS 8.0+

localizedFallbackTitle

TypeScript
get localizedFallbackTitle(): (string) | null
Swift declaration
var localizedFallbackTitle: String? { get set }
set · iOS 8.0+

localizedFallbackTitle

TypeScript
set localizedFallbackTitle(value: (string) | null)
Swift declaration
var localizedFallbackTitle: String? { get set }
get · iOS 11.0+

localizedReason

TypeScript
get localizedReason(): string
Swift declaration
var localizedReason: String { get set }
set · iOS 11.0+

localizedReason

TypeScript
set localizedReason(value: string)
Swift declaration
var localizedReason: String { get set }
get · iOS 8.3+ · Deprecated in iOS 9.0

maxBiometryFailures

TypeScript
get maxBiometryFailures(): (_Foundation_NSNumber) | null
Swift declaration
var maxBiometryFailures: NSNumber? { get set }
set · iOS 8.3+ · Deprecated in iOS 9.0

maxBiometryFailures

TypeScript
set maxBiometryFailures(value: (_Foundation_NSNumber) | null)
Swift declaration
var maxBiometryFailures: NSNumber? { get set }
get · iOS 9.0+

touchIDAuthenticationAllowableReuseDuration

TypeScript
get touchIDAuthenticationAllowableReuseDuration(): number
Swift declaration
var touchIDAuthenticationAllowableReuseDuration: TimeInterval { get set }
set · iOS 9.0+

touchIDAuthenticationAllowableReuseDuration

TypeScript
set touchIDAuthenticationAllowableReuseDuration(value: number)
Swift declaration
var touchIDAuthenticationAllowableReuseDuration: TimeInterval { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All LocalAuthentication types →