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 frameData
string Base64-encoded image of the captured selfie message
string User prompt message status
object SDK status structure error
object 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 status
RDNAIDVStatus
Enum to indicate if selfie is approved/rejected
Enum Value Meaning RDNA_IDV_SELFIE_APPROVED
Proceed with captured selfie RDNA_IDV_SELFIE_REJECTED
Retake the selfie RDNA_IDV_SELFIE_CANCELLED
Cancel the biometric opt-in process
Event/API Developer Action onIDVOptInCapturedFrameConfirmation
Show selfie and ask user to confirm setIDVBiometricOptInConfirmation
Call with appropriate status enum onIDVBiometricOptInStatus
Handle 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