DFScannerUtils Class
Intent getScannerIntent(Context context, String apiId, String apiSecret)
Get capture activity's intent
parameter | description |
---|---|
context | None |
apiId | API_ID |
apiSecret | API_SECRET |
return | description |
Intent | Intent |
String getSDKVersion()
Get the current sdk version
parameter | description |
---|---|
return | description |
String | Sdk version |
Get Result
void onActivityResult(int requestCode, int resultCode, Intent data)
Called when an activity you launched exits, giving you the requestCode you started it with, the resultCode it returned, and any additional data from it.
parameter | description |
---|---|
requestCode | The integer request code originally supplied to startActivityForResult(), allowing you to identify who this result came from. |
resultCode | The integer result code returned by the child activity through its setResult(). Reference to resultCode |
data | An Intent, which can return result data to the caller (various data can be attached to Intent "extras"). The extra key definition Key Definition |
return | description |
String | Sdk version |
resultCode
type | description |
---|---|
RESULT_CODE_QR_SCAN_SUCCESS | Scan success |
RESULT_CODE_QR_SCAN_FAIL | Scan failed |
RESULT_CODE_CAMERA_NO_PERMISSION | Do not have camera permission |
Key Definition
type | description |
---|---|
INTENT_EXTRA_KEY_QR_SCAN | The extra key when scanning success |
INTENT_EXTRA_ERROR_MESSAGE | The extra key when scanning failed |