public class FingerScanHelper extends Object
Constructor and Description |
---|
FingerScanHelper(Context context)
Constructor to initialize fingerscan sdk.
|
Modifier and Type | Method and Description |
---|---|
void |
requestVerify(OnVerifyListener verifyListener)
Call this method to verify fingerprint result.
|
void |
requestVerify(OnVerifyListener listener,
long delay)
Call this method to verify fingerprint result.
|
void |
setDelayTime(long delay)
Set the delay of timeout of request for verifying fingerprint.
|
void |
setOnTimeoutListener(OnTimeoutListener listener)
Register a callback to be invoked when timeout of requesting.
|
void |
stopRequestVerify()
Stop requestVerify() manually.
|
public FingerScanHelper(Context context) throws IllegalAccessException, SecurityException
context
- context of an applicationIllegalAccessException
- if this device not support finger scan serviceSecurityException
- if a permission(com.pantech.fingerprint.security) is not declaredpublic void requestVerify(OnVerifyListener verifyListener) throws UnsupportedOperationException
verifyListener
- the listener where the asynchronous onVerified() call are delivered.UnsupportedOperationException
- throw UnsupportedOperationException if fingerprint is not enrolledpublic void requestVerify(OnVerifyListener listener, long delay) throws UnsupportedOperationException
listener
- the listener where the asynchronous onVerified() call are delivered.delay
- delay millisecond to stop service if no swiping fingerprint. default valus is 30 seconds.UnsupportedOperationException
- throw UnsupportedOperationException if fingerprint is not enrolledpublic void setOnTimeoutListener(OnTimeoutListener listener)
listener
- the listener where the asynchronous onTimeouted() call are delivered.public void setDelayTime(long delay)
delay
- delay millisecond to stop service if no swiping fingerprint. default valus is 30 seconds.public void stopRequestVerify()