Skip to content
This repository has been archived by the owner on Mar 18, 2019. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscgdev committed Feb 27, 2018
1 parent 2d4e7ce commit f2bc0b9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Here is a complete snippet of it usage:
new FingerAuthDialog(this)
.setTitle("Sign in")
.setCancelable(false)
.setMaxFailedCount(3) // Number of attemps
.setPositiveButton("Use password", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
Expand Down Expand Up @@ -84,6 +85,29 @@ if (hasFingerprintSupport)
fingerAuthDialog.show();
```

### Implementing your own method

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

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

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

---
>See the *sample project* to clarify any queries you may have.
Expand Down

0 comments on commit f2bc0b9

Please sign in to comment.