pro100svitlo / FingerprintAuthHelper

A small library that allows You to easily manage fingererprint authentication inside your Activity or Fragment on devices with fingerprint scanner and Android M and higher. Min sdk 14
449 stars 67 forks source link

Question, turn off timeout #5

Closed ultraon closed 7 years ago

ultraon commented 7 years ago

Hello, could I turn off timeout 45 sec some how after 5 failing scans? I don't understand how works cleanTimeout(), what is the cases (example), I tried with it but it didn't work.

pro100svitlo commented 7 years ago

Hi! there are system timeout near 40-45 sec, so after 5 failing scans you need to wait at least this time. there are method: cleanTimeOut() you can use it in case you set you custom timeout (bigger then default 45 sec)! For example: there was 5 unsuccessful scan tries, but you have another auth type - pinCode for example. If user enter with pin, then you can try call method cleanTimeOut(). If more than default timeOut (45 sec) have passed after 5 scan fails, then method will stop timeoutservice. If less then default timeOut have passed, than method will setUp leftTime as difference between default and passed time.

Is it little bit clear now? :)

pro100svitlo commented 7 years ago

@ultraon hi! can i close this issue?