Android SDK
The VLens Android SDK embeds the full identity verification experience — national ID scanning, liveness detection, and face matching — directly into your Android app with a single method call.
Installation
Method 1: Maven Central (Recommended)
Add the dependency to your app’s build.gradle:
Kotlin DSL
Groovy DSL
Maven
All transitive dependencies (CameraX, ML Kit, Retrofit, etc.) are automatically included. You do not need to add them manually.
Method 2: Manual AAR
If you prefer to use the AAR file directly:
- Copy the
VLens-release.aarfile into your project’sapp/libs/directory. - Add the file and its required dependencies to your
build.gradle:
Kotlin DSL
Groovy DSL
Quick start
Import and call VLensManager().init() from your Activity or Fragment:
Configuration
EnvironmentConfig
SdkConfig — all parameters
Colors and ColorConfig
Verification modes
Full verification (default)
Liveness only
ID scan only
Runs the complete flow: ID front → ID back → liveness.
Handling results
onSuccess — ExtractData
When getExtractedData = true, the onSuccess callback receives an ExtractData object:
ExtractData — full field reference
user
idFrontData
idBackData
onFaild
Custom error messages
Security notes
- Store API credentials (access token, refresh token, API key) securely — never hardcode them in production builds.
- Use Android Keystore or a secrets management solution for runtime credential storage.
Support
For issues or inquiries, contact support@vlenseg.com with your tenant name, the error code and message, and the SDK version.

