SDK Response
SDK Listener
Use the following code snippet to receive SDK callbacks
Response Instances
Success
: Process finished successfully
CapturedImages
: Images captured are returned in real-time
Note: ForCapturedImages
instance, images are not processed yet
BuilderError
: Process terminated due to an error in the builder
Note: Check your configurations
ServiceFailure
: Process finished with the user's failure to pass the service requirements
UserExit
: Process terminated by the user with no errors
Primary Response Object
VIDVOCRResult
Note: This is the first-level object that contains all the second-level objects.
It is present in these type of response and holds data related to the responses, includingSuccess
,ServiceFailure
, and UserExit
.
Here is the attributes of VIDVOCRResult
class that represents the data that could be retrived from the response object VIDVOCRResponse
using getData() method that returnsVIDVOCRResult
object like in the example code above showing a use of Success
response.
captures : <Captures>
documentVerificationResult : <DocumentVerificationResult>
ocrResult : <VIDVOCRData>
decryptionKeys : <VIDVDecryptionKeys>
hmacDataList : <List<HmacData>>
sessionID : <String>
Object Body
sessionID
<string>
The raw response in hmacDataList
should be mapped to the result object as per the HMAC validation documentation
Instance Responses
Success
VIDVOCRResult
<object>
CapturedImages
UserExit
VIDVOCRResult
<object>step
<string>
Note: step <string> identifies the point where the user chose to exit the SDK
ServiceFailure
VIDVOCRResult
<object>code
<string>message
<string>
BuilderError
code
<string>message
<string>
Last updated