FingerAuth

Additional

Language
Java
Version
1.0.1 (Jul 28, 2018)
Created
Feb 26, 2018
Updated
Jul 28, 2018
Owner
Marcos Calvo García (marcoscgdev)
Contributor
Marcos Calvo García (marcoscgdev)
1
Activity
Badge
Generate
Download
Source code

Promotion

FingerAuth

Fingerprint authentication made easy.


Show dialog only on devices that support fingerprint auth:

boolean hasFingerprintSupport = FingerAuth.hasFingerprintSupport(this);

if (hasFingerprintSupport)
    fingerAuthDialog.show();

Implementing your own method

new FingerAuth(this)
        .setMaxFailedCount(3) // Number of attemps, default 3
        .setOnFingerAuthListener(new FingerAuth.OnFingerAuthListener() {
            @Override
            public void onSuccess() {
                // do something
            }

            @Override
            public void onFailure() {
                // do something
            }

            @Override
            public void onError() {
                // do something
            }
        });

Override strings

<string name="fingerauth_dialog_description">Confirm fingerprint to continue</string>
<string name="fingerauth_dialog_hint">Touch sensor</string>
<string name="fingerauth_dialog_not_recognized">Fingerprint not recognized. Try again</string>
<string name="fingerauth_dialog_success">Fingerprint recognized</string>

See the


sample project to clarify any queries you may have.