Fingerprint SDK Interface Documentation: 1.1 Initialize
Fingerprint SDK Interface Documentation: 1.1 Initialize
1 Fingerprint module
The fingerprint module is responsible for providing functions such as opening, closing, fingerprinting, verification, and
deletion of the fingerprint module.
Get the object of the FingerprintManager class:
1.1 Initialize
1
Describe Initialize
Input parameters
Output parameters
Return boolean true Success,false fail
Data structure
Note
Example
1.2 Close
1.3 Capture
2
Describe Capture current fingerprint image features
Input parameters timeout Timeout, in seconds (range 0~50)
Output parameters
Return
Data structure
Note Get the data in the onGetImageFeature () callback
Example
1.6 Enrollment
Method name public void enrollment(int fingerId, int count, int timeout)
Describe Collect fingerprint image features three times to complete user
callback
Example
3
1.7 Authenticate
onAuthenticationFailed()
Example
1.8 Authenticate
library.
Input parameters fingerId Fingerprint id
timeout Timeout, in seconds (range 0~50)
Output parameters
Return
Data structure
Note The result in onAuthenticationSucceeded() and
onAuthenticationFailed()
Example
4
1.9 Remove fingerprint
5
}
Note
Example
}
Note
Example
6
1.14 Add listener
Output parameters
Return
Data structure
Note
Example
Output parameters
Return
Data structure
Note
Example
7
*/
public void onEnrollmentProgress(int fingerId, int remaining, int reason);
/**
* Fingerprint auth failed
*
* @param reason
*/
public void onAuthenticationFailed(int reason);
/**
* Fingerprint auth succeeded
*
* @param fingerId Fingerprint Id
* @param result
*/
public void onAuthenticationSucceeded(int fingerId, Object obj);
/**
* Get fingerprint image
*/
public void onGetImageComplete(String result, byte[] imgBuff);
/**
* Get fingerprint feature
*
* @param result
* @param feature
*/
public void onGetImageFeature(int result, byte[] feature);
/**
* Get fingerprint ISO features
*
* @param result
* @param feature
*/
public void onGetImageISOFeature(int result, byte[] feature);
}
8
3 Returns code information
3.2 FingerResult
9
public static final int UNKNOWN_ERROR = 0x19;
public static final int GET_IMAGE_TIMEOUT = 0x1C;
public static final int CHECK_VALUE_ERROR = 0x1D;
public static final int NO_PERMISSION = 0xFE;
public static final int NO_SUPPORTED_CMD = 0xFF;
10