Presenting Screens
The SDK provides different pathways to presenting the same screens to avoid a stringent user experience whilst integrating
Step 1 : Call Smile UI
Call the required screen or screens as per the example below
CaptureType.SELFIE Will show the selfie screen then the review screen before sending the results back to your application
CaptureType.ID_CAPTURE Will show the ID card capture screen then send results back to your application
CaptureType.SELFIE_AND_ID_CAPTURE Will show the selfie screen then the review screen and then the id card capture screen before sending the results back to your application CaptureType.ID_CAPTURE_AND_SELFIE Will show the id card capture screen then the selfie screen then the review screen and before sending the results back to your application.
Step 2: Get Results Using from onActivityResult
The results for the screens are returned in
These have
This is either the tag supplied to the manager or if none was supplied this is an autogenerated tag from the SDK identifying the job
data.getStringExtra(SMILE_REQUEST_RESULT_TAG)
This is the result code returned from the capture which can signify a success or failure
Possible values for SMILE_REQUEST_RESULT_TAG
are
SMILE_REQUEST_RESULT_TAG
are-1 represents a successful capture
777 represents a user cancelled capture
888 represents a failed document capture eror
999 represents a failed selfie capture error
1011 represents a permissions error
Last updated