Face Verification
Flow Version - v1.2
Setup Sdk
Launch Flow
let config = DigitalIdentitySelfieVerificationConfig(
baseUrl: <DigitalIdenity BE Base Url>,
token: <DigitalIdenity Token>,
correlationId: <Coorrelation Id>,
language: <App Language>,
theme: <Selfie Verification flowtheme>)
DigitalIdentitySdk.shared.launchSelfieVerification(
config: config,
viewcontroller: <viewcontroller instance>,
helpCenter: DigitalIdentityHelpCenterDelegate)
{ result in
}
Method name: launchSelfieVerification
launchSelfieVerificationParameters:
- config: Instance of
DigitalIdentitySelfieLivenessConfig- baseUrl: DigitalIdentity BE url received from the OneKyc team
- token: DigitalIdentity token received from the DigitalIdentity authentication API
- correlationId: Unique identifier for the Selfie Verification flow.
- language: App language.
- theme: The
DigitalIdentitySelfieFlowThemeclass is an optional parameter that can be used to customize the theme of the Selfie Verification flow screens. Theme customization values can be passed as an instance of this class to modify the Selfie Verification flow screens. More information on theme customization can be found in the theme customization section.
- viewcontroller: View controller instance to present the Selfie Verification flow-related screens
- helpCenter: An instance of a class that conforms to
DigitalIdentityHelpCenterDelegatedelegate. Help center option-related actions will be triggered via this delegate. Refer to this section for more details. - completion: Selfie Verification flow completion status block. In completion we will get instance of the
DigitalIdentityDocumentVerificationResultclass. It has following properties- correlationId: Correlation Id value which passed in the
launchSelfieVerificationmethod call. - status: Selfie Verification flow completion status. Its
DigitalIdentityDocumentVerificationResultStatusenum type and has following values- completed: Selfie Verification is done
- error: Error in Selfie Verification
- notCompleted: User dropped from Selfie Verification flow screens
- submissionId: Optional value. Reference number for Selfie Verification documents. We will get this value when user made the submission
- extra: Optional value and type of DigitalIdentityResultExtraData class. Sdk will send this property when the user drops from the flow. It has the following properties
- errorCode: It's a DigitalIdentityFlowErrorCode enum type and it has following values
- CAMERA - User dropped the flow from the camera error bottom sheet
- PERMISSION - User denied camera permission
- NETWORK - User dropped the flow from the api error bottom sheet
- USER_CANCELLED - User dismissed the flow
- VERIFICATION - Document verification has been completed with errors
- errorMessage: More details about the error
- errorCode: It's a DigitalIdentityFlowErrorCode enum type and it has following values
- correlationId: Correlation Id value which passed in the
Theming Reference
The following screens can be customized using the SDK’s theming system.
Selfie Camera
Class name: DigitalIdentitySelfieCameraScreenTheme
Screen Annotations | Mapped Properties |
|---|---|
![]() ![]() |
|
Selfie Guideline
Class name: DigitalIdentityGuidelineScreenTheme
Screen Annotations | Mapped Properties |
|---|---|
![]() |
|
Document Verification Inprogress & Document Verification time exceed
Class name: DigitalIdentityDocumentVerificationScreenTheme
Screen Annotations | Mapped Properties |
|---|---|
![]() ![]() |
|
Verification Failed & Verification Limit Exhausted
Class name: DigitalIdentityDocumentVerificationFailedScreenTheme
Screen Annotations | Mapped Properties |
|---|---|
![]() ![]() |
|
Common Dialogs
Updated about 1 month ago
Documentations






