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

    context

    Biometric authentication context.

  • Checks if the device supports biometric authentication

    Declaration

    Swift

    func isBiometricSupported() -> Bool

    Return Value

    Boolean result, true if the biometric authentication supported, false othervise.

  • Performs biometric authentication.

    Declaration

    Swift

    func authenticate(_ callback: @escaping (Bool) -> Void)

    Parameters

    callback

    takes boolean value, that indicates the result of biometric authentication.