SDK Response
The response of the SDK will return in the following delegate
func onOCRResult(result: VIDVOCRResponse)
It will return an enum result of type VIDVOCRResponse
VIDVOCRResponse
Cases
VIDVOCRResponse
CasesSuccess
: Process finished successfully
CapturedImages
: Images captured are returned in real-time
UserExit
: Process terminated by the user with no errors
ServiceFailure
: Process finished with the user's failure to pass the service requirements
BuilderError
: Process terminated due to an error in the builder
Example
switch result {
case .success(let data):
// data of type VIDVOCRResult
case .builderError(let code, let message):
// builder error code & error message
case .serviceFailure(let code, let message, let data):
// service faluire error code & error message & data of type VIDVOCRResult
case .userExit(let step, let data):
// last step in the SDK & data of type VIDVOCRResult
case .capturedImages(capturedImageData: let capturedImageData):
// capturedImageData of type CapturedImageData
}
Primary Response Object
VIDVOCRResult
Object Body
sessionID
<string>
SDK Event Logs Response
Instance Responses
Success
VIDVOCRResult
<object>
CapturedImages
UserExit
VIDVOCRResult
<object>step
<string>
ServiceFailure
VIDVOCRResult
<object>code
<string>message
<string>
BuilderError
code
<string>message
<string>
Last updated