id Validation
ID Validation
Capturing ID document(s), validate the ID and extract data from it. It launches the camera to capture ID Document and return the result as obtained in the form of Intent in onActivityResult.
Developer Guides :
public class YourActivity extends Activity { private var processedCaptures: List<ProcessedCapture>? = null protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { if (resultCode == RESULT_OK) { if (!data?.extras?.getParcelableArray(IdMissionCaptureLauncher.EXTRA_PROCESSED_CAPTURES) .isNullOrEmpty() ) { processedCaptures = data?.extras?.getParcelableArray(IdMissionCaptureLauncher .EXTRA_PROCESSED_CAPTURES) ?.toList() as List<ProcessedCapture>? } } } }
You can access processed captures at the following indexes :
0 - ProcessedCapture instance for ID front.
1 - ProcessedCapture instance for ID back.
Parameters
: Requires current activity context.
: Optional parameter to enable Additional Flags.
: Optional parameter to customize camera options. It will take default options, if null or not passed while invocation.
ID Validation - Medium SDK
Capturing ID document(s), validate the ID and extract data from it. It launches the camera to capture ID Document and return the result as obtained in the form of Intent in onActivityResult.
Developer Guides :
public class YourActivity extends Activity { private var processedCaptures: List? = null protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { if (resultCode == RESULT_OK) { if(!data.extras?.getParcelableArray(IdMissionCaptureLauncher.EXTRA_PROCESSED_CAPTURES.isNullOrEmpty()) { processedCaptures = data.extras?.getParcelableArray(IdMissionCaptureLauncher.EXTRA_PROCESSED_CAPTURES } //finalSubmit call for submit data to the server CoroutineScope(Dispatchers.Main).launch { var response = IdentityProofingSDK.finalSubmit(applicationContext) } } } }
You can access processed captures at the following indexes :
0 - ProcessedCapture instance for ID front.
1 - ProcessedCapture instance for ID back.
Parameters
: Requires current activity context.
: Requires instance of IdTypeMaster which determines ID type of ID.
: Requires instance of CountryMaster which determines Country of ID.
: Optional parameter instance of StateMasterVO which determines State of ID.
: Optional parameter to enable Additional Flags.
: Optional parameter to customize camera options. It will take default options, if null or not passed while invocation.
For status and error code please refer to Status documentation
ID Validation- Full SDK
Capturing ID document(s), validate the ID and extract data from it. It launches the camera to capture ID Document and return the result as obtained in the form of Intent in onActivityResult.
Developer Guides :
public class YourActivity extends Activity { private var processedCaptures: List? = null protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) { if (resultCode == RESULT_OK) { if(!data.extras?.getParcelableArray(IdMissionCaptureLauncher.EXTRA_PROCESSED_CAPTURES.isNullOrEmpty()) { processedCaptures = data.extras?.getParcelableArray(IdMissionCaptureLauncher.EXTRA_PROCESSED_CAPTURES } //finalSubmit call for submit data to the server CoroutineScope(Dispatchers.Main).launch { var response = IdentityProofingSDK.finalSubmit(applicationContext) } } } }
You can access processed captures at the following indexes :
0 - ProcessedCapture instance for ID front.
1 - ProcessedCapture instance for ID back.
Parameters
: Requires current activity context.
: Optional parameter to enable Additional Flags.
: Optional parameter to customize camera options. It will take default options, if null or not passed while invocation.
For status and error code please refer to Status documentation