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

Parameters:

  • 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 DigitalIdentitySelfieFlowTheme class 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 DigitalIdentityHelpCenterDelegate delegate. 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 DigitalIdentityDocumentVerificationResult class. It has following properties
    • correlationId: Correlation Id value which passed in the launchSelfieVerification method call.
    • status: Selfie Verification flow completion status. Its DigitalIdentityDocumentVerificationResultStatus enum 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

Theming Reference

The following screens can be customized using the SDK’s theming system.

Selfie Camera

Class name: DigitalIdentitySelfieCameraScreenTheme

Screen Annotations

Mapped Properties

  1. backButton
  2. viewGuide
  3. title
  4. feedback
    4.1. error/success & feedbacks
  5. captureExhausted
    5.1. background
    5.2. title
    5.3. infoItems
    5.4. primaryCTA
    5.5. secondaryCTA

Selfie Guideline

Class name: DigitalIdentityGuidelineScreenTheme

Screen Annotations

Mapped Properties

  1. background
  2. closeButton
  3. guideline.autoCaptureTitle /
    guideline.manualCaptureTitle
  4. guideline.autoCaptureInfoView
  5. guideline.autoCaptureInfoTitle
  6. guideline.autoCaptureInfoDescription
  7. guideline.allowedCard
  8. guideline.allowedCardTitle
  9. guideline.notAllowedCard
  10. guideline.notAllowedCardTitle
  11. guideline.autoCaptureInstructions /
    guideline.manualCaptureInstructions
  12. guideline.bulletPoint

Document Verification Inprogress & Document Verification time exceed

Class name: DigitalIdentityDocumentVerificationScreenTheme

Screen Annotations

Mapped Properties

  1. background
  2. containerCard
  3. backButton
  4. inprogressTitle
  5. verificationTimer
  6. timeExceedTitle
  7. timeExceedImage

Verification Failed & Verification Limit Exhausted

Class name: DigitalIdentityDocumentVerificationFailedScreenTheme

Screen Annotations

Mapped Properties

  1. background
  2. backButton
  3. headerView
  4. headerTitle
  5. infoCard
  6. failureLogo
  7. failureTitle
  8. failureDescription
  9. attemptExhaustedTitle
  10. attemptExhaustedDescription
  11. guidelineInfo
    11.1. icon
    11.2. title
    11.3. description
  12. attemptLeft
  13. retakeButton
  14. helpPrimaryButton
  15. helpSecondaryButton

Common Dialogs


Documentations