Selfie Liveness

Flow Version - v1.2

Setup Sdk

Launch Flow:

let config = DigitalIdentitySelfieLivenessConfig(
                         baseUrl: <DigitalIdentity BE Base Url>,
                         token: <DigitalIdentity Token>,
                         correlationId: <Coorrelation Id>,
                         language: <App Language>,
                         theme: <Selfie Liveness flow theme>)

DigitalIdentitySdk.shared.launchSelfieLiveness(
                        config: config,
                        viewcontroller: <viewcontroller instance>,
                        helpCenter: DigitalIdentityHelpCenterDelegate)
{ result in

}

Method name: launchSelfieLiveness

Parameters:

  • config: Instance of DigitalIdentitySelfieLivenessConfig
    • baseUrl: DigitalIdentity BE url received from the DigitalIdentity team
    • token: DigitalIdentity token received from the DigitalIdentity authentication API
    • correlationId: Unique identifier for the Selfie Liveness flow.
    • language: App language.
    • theme: The optional DigitalIdentitySelfieFlowTheme class parameter allows for theme customization of the Selfie Liveness flow screens. To implement custom theme values, please refer to the theme customization section for more information.
  • viewcontroller: View controller instance to present the Selfie Liveness 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 Liveness flow completion status block. In completion, we will get an instance of the DigitalIdentityDocumentVerificationResult class. It has the following properties
    • correlationId: Correlation Id value which passed in the launchSelfieLiveness method call.
    • status: Selfie Liveness flow completion status. Its DigitalIdentityDocumentVerificationResultStatus enum type and has following values
      • completed: Selfie Liveness is done
      • error: Error in Selfie Liveness verification
      • notCompleted: User dropped from Selfie Liveness flow screens
    • submissionId: Optional value. Reference number for Selfie Liveness 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