net.facelib.mtfsdk.V1LicenseManager Maven / Gradle / Ivy
package net.facelib.mtfsdk;
import net.facelib.jni.FacelibLicenseManager;
import net.facelib.akcore.AuthParameter;
import net.facelib.akcore.ProductInitStatus;
import static net.facelib.mtfsdk.V1AndroidBridge.ffInit;
import static net.facelib.mtfsdk.V1AndroidBridge.FFDestroy;
public class V1LicenseManager extends FacelibLicenseManager {
static V1LicenseManager V1_LICENSE_MANAGER = new V1LicenseManager();
public V1LicenseManager() {
super(V1AndroidBridge.V1_PRODUCT_ID);
}
@Override
public ProductInitStatus validateLicense() {
V1AndroidBridge tmp = new V1AndroidBridge();
String licenseFile = provider().zeroEndStringOf(AuthParameter.LICENSE_FILE);
ProductInitStatus initStatus = ffInit(licenseFile,tmp);
if(initStatus == ProductInitStatus.SDK_INIT_OK){
FFDestroy(tmp.featureHandle[0]);
}
return initStatus;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy