SDK Integration Documentation

Integrate the SDK into your project

  1. Add a maven repository dependency to build.gradle in the root of your project

  2. Adding package dependencies to app/build.gradle

SDK Version update

You can view the version log at the following link

Quick Start

  1. Initialize the SDK

    Add the following initialization code to the custom application

  2. Set the license (your server calls openAPI to get the license)

  3. User binding (highly recommended).

    You can use this method to pass us your unique user ID, and we will establish a mapping relationship based on that ID. It's easy to track logs with us in case of problems.

  4. Start and Get Results

We provide two ways to get images and detection results, you can get them directly through the SDK or you can request the results via IDVID.

Supports modifying the page style through the example code below. If the styles provided do not meet your customization needs, please click here to download the UI source code for your custom modifications.

  1. Image element customization

    Use the gradle package merge resource mechanism to place image resources of the same name from the SDK in your app module to customize the image elements.


    The names of the individual image resources correspond as follows:

  2. Text customization

    Use the gradle package merge resource mechanism to place text resources of the same name from the SDK in your app module to enable customization of image elements.

  1. Multilingual

    SDK supports three languages, English, Indonesian and Chinese, switching automatically with the cellphone system language.

    • If the SDK does not automatically switch with the system language, please check your cellphone language settings and make sure that both [Region] and [Language] are switched to the corresponding language.
  1. Runtime Permissions

    This SDK requires the following permissions, which have been configured in the aar manifest file and the SDK itself is ready for dynamic application of Android 6.0+ permissions.

  2. About App Bundle Bundling

    Please verify that the packaged APK will work on all architectures of cell phones. If you are prompted with [this device is not supported], it means that the .so file in .aar is missing when assembling the APK. Please contact us for a separate version of .so and .aar.

  3. Code proguard configuration

    The SDK already has code proguard, no additional configuration is required.

  4. About androidx

    Considering the mutually exclusive nature of AndroidX and android.support.* packages, all the .aar of this SDK are android.support.* packages. If your project is an AndroidX package and you encounter a android.support.* package conflict error when compiling, please add the following configuration to the gradle.properties file in the root directory of your project and recompile the project and you will be able to:

  5. SDK Compatibility

    • Minimum Android version:4.4 (API Level:19)
    • Compilation Android SDK version:API Level:34
    • Additional dependent third-party libraries: None
    • Supported CPU architectures:armeabi-v7a,arm64-v8a,x86,x86_64,armeabi
    • SDK package size: 0.9MB model file + about 0.7MB per CPU architecture