Licensing
Get your Application ID
To activate SDK, you have to first get your Application ID in your build.gradle
file:
android {
namespace 'com.bio.facerecognition'
compileSdk 33
defaultConfig {
applicationId "com.bio.facerecognition"
minSdk 24
targetSdk 33
versionCode 4
versionName "1.3"
Request License
Share your Application ID with us for license key.
Activate SDK
Activate the SDK with license key. Should be called before using of any other functions.
import com.bio.facesdk.FaceSDK
val license_str = application.assets.open("license").bufferedReader().use{
it.readText()
}
var ret = FaceSDK.setActivation(license_str)
if (ret == FaceSDK.SDK_SUCCESS) {
ret = FaceSDK.init(assets)
}
Last updated