SDK Response
SDK Listener
Use the following code snippet to receive SDK callbacks
VIDVLivenessListener vidvLivenessListener=new VIDVLivenessListener() {
@Override
public void onLivenessResult(VIDVLivenessResponse livenessResponse) {
if (livenessResponse instanceof Success) {
//an example code to use the response in your app :
//this variable will have a base64 captured image during the Liveness proccess.
String base64Image = ((Success) livenessResponse).vidvLivenessResult.capturedImage();
// Add your code here
} else if (livenessResponse instanceof BuilderError) {
// Add your code here
} else if (livenessResponse instanceof ServiceFailure) {
// Add your code here
} else if (livenessResponse instanceof UserExit) {
// Add your code here
}else if (livenessResponse instanceof CapturedActions){
// Add your code here
}
}
};Response Instances
Success : Process finished successfully
CapturedActions: 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
Primary Response Object
VIDVLivenessResult
Object Body
facematchTransactionID<string>facematchSuccess<boolean>livenessSuccess<boolean>capturedImage<base64-string>auditRequired<boolean>auditCaseCreated<boolean>
Instance Responses
Success
vidvLivenessResult<object>
CapturedActions
UserExit
vidvLivenessResult<sub-object>step<string>
ServiceFailure
errorCode<int>errorMessage<string>vidvLivenessResult<object>
BuilderError
errorCode<int>errorMessage<string>
Last updated