BiometricManager
class BiometricManager : IBiometricManager
Performs biometric authentication.
-
Biometric authentication context.
Declaration
Swift
private var context: LAContext -
Variable indicates possibility of biometric authentication on current device.
Declaration
Swift
private var biometricSupported: Bool? -
Initializes with context for biometric authentication.
Declaration
Swift
init(context: LAContext)Parameters
contextBiometric authentication context.
-
Checks if the device supports biometric authentication
Declaration
Swift
func isBiometricSupported() -> BoolReturn Value
Boolean result, true if the biometric authentication supported, false othervise.
-
Performs biometric authentication.
Declaration
Swift
func authenticate(_ callback: @escaping (Bool) -> Void)Parameters
callbacktakes boolean value, that indicates the result of biometric authentication.
BiometricManager Class Reference