Android Document Capture SDK

The official SDK for Youverify OS. The SDK provides you with a seamless way to integrate Youverify services into your Android app.

The Android SDK supports both Kotlin and Java, but we strongly recommend using Kotlin.

Requirement

Your app must declare a minimum SDK version of at least 24 (Android 6.0 and above).

Gradle

Add the dependency below to your module's build.gradle file located under app/build.grade:

gradle
dependencies {
    implementation 'co.youverify:yvos.android:1.1.6'
}

How to Use

The SDK offers 3 services separated into Modules. Each Module provides a Builder class to instantiate and gain access to its functionality.

You can also provide optional parameters like:

  • User personal information,

  • customization options

  • metadata ( to be passed to your webhook Url)" to the Builder object.

The customization options are used to customize the SDK's UI to align with your app's theme and also show a personalized message (using the user's first name) to the user before any of the processes starts while the user information is either used to automatically fill in some fields in the form or is stored alongside the result of a successful liveness check to our remote server. The SDK supports both Kotlin and Java projects, so you can reference it in your language.

Ensure to add the following in your AndroidManifest.xml

Using the WorkflowBuilder Module with Kotlin

First off, create an instance of the WorkflowBuilderModule with the WorkflowBuilderModule.Builder class, passing in your merchant key and the template Id of the form to be displayed.

Specifying optional parameters:

Display the form

Call start() on the WorkflowBuilderModule instance passing in a Context object to show the form to your user:

Cancel the process

The process is automatically canceled once either of the onSuccess or onCompleted callbacks returns, but you can also cancel manually by calling close():

Use WorkflowBuilderModule with Java

You can create an instance of the WorkflowBuilderModule with Java by using the WorkflowBuilderModule.Builder class, as the following example below:

Display the Form

Cancel the process

Using the LivenessCheck Module with Kotlin

First off, create an instance of the LivenessCheckModule with the LivenessCheckModule.Builder class, passing in your merchant key.

Specifying optional parameters:

Start the process

Call start() on the LivenessCheckModule instance passing in a Context object to start the process:

Cancel the process

You can create an instance of the LivenessCheckModule with Java by using the LivenessCheckModule.Builder class, as the following example below:

Start the process

Cancel the process

Using the DocumentCapture Module with Kotlin

First off, create an instance of the DocumentCaptureModule with the DocumentCaptureModule.Builder class, passing in your merchant key.

Specifying optional parameters:

Start the process

Call start() on the DocumentCaptureModule instance passing in a Context object to start the process:

Cancel the process

The process is automatically canceled once the onSuccess callbacks returns, but you can also cancel manually by calling close():

Use DocumentCaptureModule with Java

You can create an instance of the DocumentCaptureModule with Java by using the DocumentCaptureModule.Builder class, as the following example below:

Start the process

Cancel the process

Report Issues

Use the issue tracker to report any bug or request a feature. We promise to attend to issues as soon as they're created.

Credits

This SDK is developed and maintained solely by Youverify

License

MIT

Last updated

Was this helpful?