LocalAuthentication · IOS API REFERENCE
LAContext
class · iOS 8.0+ · SDK 27.1
class LAContext
Members (22)
method · iOS 8.0+canEvaluatePolicy
TypeScriptcanEvaluatePolicy(policy: LAPolicy): { $ret: boolean; $out: { "error": (_Foundation_NSError) | null } }
Swift declarationfunc 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
TypeScriptevaluateAccessControl(accessControl: _Security_SecAccessControl, operation: LAAccessControlOperation, localizedReason: string, reply: ((arg0: boolean, arg1: (NativeError) | null) => void)): void
Swift declarationfunc evaluateAccessControl(_ accessControl: SecAccessControl, operation: LAAccessControlOperation, localizedReason: String) async throws -> Bool
method · iOS 8.0+evaluatePolicy
TypeScriptevaluatePolicy(policy: LAPolicy, localizedReason: string, reply: ((arg0: boolean, arg1: (NativeError) | null) => void)): void
Swift declarationfunc evaluatePolicy(_ policy: LAPolicy, localizedReason: String) async throws -> Bool
initinit
TypeScriptstatic init(): LAContext
Swift declarationinit()
method · iOS 9.0+invalidate
TypeScriptinvalidate(): void
Swift declarationfunc invalidate()
method · iOS 9.0+isCredentialSet
TypeScriptisCredentialSet(type: LACredentialType): boolean
Swift declarationfunc isCredentialSet(_ type: LACredentialType) -> Bool
method · iOS 9.0+setCredential
TypeScriptsetCredential(credential: (ArrayBuffer) | null, type: LACredentialType): boolean
Swift declarationfunc setCredential(_ credential: Data?, type: LACredentialType) -> Bool
get · iOS 11.0+biometryType
TypeScriptget biometryType(): LABiometryType
Swift declarationvar biometryType: LABiometryType { get }
get · iOS 18.0+domainState
TypeScriptget domainState(): LADomainState
Swift declarationvar domainState: LADomainState { get }
get · iOS 9.0+ · Deprecated in iOS 18.0evaluatedPolicyDomainState
TypeScriptget evaluatedPolicyDomainState(): (ArrayBuffer) | null
Swift declarationvar evaluatedPolicyDomainState: Data? { get }
get · iOS 11.0+interactionNotAllowed
TypeScriptget interactionNotAllowed(): boolean
Swift declarationvar interactionNotAllowed: Bool { get set }
set · iOS 11.0+interactionNotAllowed
TypeScriptset interactionNotAllowed(value: boolean)
Swift declarationvar interactionNotAllowed: Bool { get set }
get · iOS 10.0+localizedCancelTitle
TypeScriptget localizedCancelTitle(): (string) | null
Swift declarationvar localizedCancelTitle: String? { get set }
set · iOS 10.0+localizedCancelTitle
TypeScriptset localizedCancelTitle(value: (string) | null)
Swift declarationvar localizedCancelTitle: String? { get set }
get · iOS 8.0+localizedFallbackTitle
TypeScriptget localizedFallbackTitle(): (string) | null
Swift declarationvar localizedFallbackTitle: String? { get set }
set · iOS 8.0+localizedFallbackTitle
TypeScriptset localizedFallbackTitle(value: (string) | null)
Swift declarationvar localizedFallbackTitle: String? { get set }
get · iOS 11.0+localizedReason
TypeScriptget localizedReason(): string
Swift declarationvar localizedReason: String { get set }
set · iOS 11.0+localizedReason
TypeScriptset localizedReason(value: string)
Swift declarationvar localizedReason: String { get set }
get · iOS 8.3+ · Deprecated in iOS 9.0maxBiometryFailures
TypeScriptget maxBiometryFailures(): (_Foundation_NSNumber) | null
Swift declarationvar maxBiometryFailures: NSNumber? { get set }
set · iOS 8.3+ · Deprecated in iOS 9.0maxBiometryFailures
TypeScriptset maxBiometryFailures(value: (_Foundation_NSNumber) | null)
Swift declarationvar maxBiometryFailures: NSNumber? { get set }
get · iOS 9.0+touchIDAuthenticationAllowableReuseDuration
TypeScriptget touchIDAuthenticationAllowableReuseDuration(): number
Swift declarationvar touchIDAuthenticationAllowableReuseDuration: TimeInterval { get set }
set · iOS 9.0+touchIDAuthenticationAllowableReuseDuration
TypeScriptset touchIDAuthenticationAllowableReuseDuration(value: number)
Swift declarationvar touchIDAuthenticationAllowableReuseDuration: TimeInterval { get set }
Skipped declarations
No declarations were skipped in this snapshot.
All LocalAuthentication types →