BFBiometrics

public enum BFBiometrics

This struct adds some useful functions to use biometric authentications.

  • Returns if the Biometrics authentication can be used.

    Declaration

    Swift

    public static func canUseBiometric() -> Result

    Return Value

    Returns an error code as Result enum.

  • Shows the Biometrics authentication.

    Declaration

    Swift

    public static func useBiometric(localizedReason: String, fallbackTitle: String? = nil, completion: @escaping (_ result: Result) -> Void)

    Parameters

    reason

    Text to show in the alert.

    fallbackTitle

    Default title Enter Password is used when this property is left nil. If set to empty string, the button will be hidden.

    completion

    Completion handler.

    result

    Returns the Biometrics result, from the Result enum.