Getting a License for Android SDK
OzLivenessSDK.init(context,
listOf(
LicenseSource.LicenseAssetId(R.raw.your_license_name),
LicenseSource.LicenseFilePath("absolute_path_to_your_license_file")
),
object : StatusListener<LicensePayload> {
override fun onSuccess(result: LicensePayload) { /*check the license payload*/ }
override fun onError(error: OzException) { /*handle the exception */ }
}
)OzLivenessSDK.INSTANCE.getConfig().setBaseURL(BASE_URL);
OzLivenessSDK.INSTANCE.init(context,
Arrays.asList(
new LicenseSource.LicenseAssetId(R.raw.forensics),
new LicenseSource.LicenseFilePath("absolute_path_to_your_license_file")
),
new StatusListener<LicensePayload>() {
@Override public void onStatusChanged(@Nullable String s) {}
@Override public void onSuccess(LicensePayload licensePayload) { /*check the license payload*/ }
@Override public void onError(@NonNull OzException e) { /*handle the exception */ }
}
);Possible License Errors
Error message
What to Do
Last updated
Was this helpful?
