public FingerprintDialog tryLimit ( int limit , final FailAuthCounterDialogCallback counterCallback ) { this . fingerprint . tryLimit ( limit , new FailAuthCounterCallback ( ) { @ Override public void onTryLimitReached ( Fingerprint fingerprint ) { counterCallback . onTryLimitReached ( FingerprintDialog . this ) ; } } ) ; return this ; }
Set a fail limit . Android blocks automatically when 5 attempts failed .