This event is triggered after the REL-ID SDK captures the user's selfie during the biometric opt-in flow.
It provides a preview image and prompts the app to let the user either confirm the image, retry, or cancel the process.
When this event is received:
Show the captured selfie image (base64 encoded).
Present options to:
✅ Approve
🔁 Retry
❌ Cancel
JSON
{
"frameData": "<Base64EncodedImageData>",
"message": "Confirm captured frame",
"status": {
"statusCode": 100,
"statusMessage": "Frame captured"
},
"error": {
"longErrorCode": 0,
"shortErrorCode": 0,
"errorString": "Success"
}
}
Field Type Description frameDatastring Base64-encoded image of the captured selfie messagestring User prompt message statusobject SDK status structure errorobject SDK error structure
This API must be invoked in response to onIDVOptInCapturedFrameConfirmation, based on the user's action.
🧠 React Native ts
RdnaClient.setIDVBiometricOptInConfirmation(status, (response) => {});
🐦 Flutter Dart
rdna.setIDVBiometricOptInConfirmation(status);
🌐 Cordova JavaScript
com.uniken.rdnaplugin.RdnaClient.setIDVBiometricOptInConfirmation(successCallback, errorCallback, [status]);
📱 Native iOS Objective-C
(RDNAError*)setIDVBiometricOptInConfirmation:(RDNAIDVStatus)status;
🤖 Native Android Java
RDNA.RDNAError setIDVBiometricOptInConfirmation(RDNAIDVStatus status);
Parameter Type Description statusRDNAIDVStatusEnum to indicate if selfie is approved/rejected
Enum Value Meaning RDNA_IDV_SELFIE_APPROVEDProceed with captured selfie RDNA_IDV_SELFIE_REJECTEDRetake the selfie RDNA_IDV_SELFIE_CANCELLEDCancel the biometric opt-in process
Event/API Developer Action onIDVOptInCapturedFrameConfirmationShow selfie and ask user to confirm setIDVBiometricOptInConfirmationCall with appropriate status enum onIDVBiometricOptInStatusHandle success or failure of biometric enrollment
Code Message Action 100 Frame captured successfully Proceed with preview UI 500 Internal capture error Prompt for retry or cancel
initiateIDVBiometricOptIn() — Starts the biometric flow
onIDVBiometricOptInStatus() — Final status of the opt-in process