getLicenseType static method
Retrieves the license type.
return The license type. throws FaceException An error has occurred during Face Library execution.
Implementation
static LicenseType getLicenseType() {
Pointer<Int32> pFaceLicenseType = calloc();
try {
var err = faceSDK.id3FaceLicense_GetLicenseType(pFaceLicenseType);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vFaceLicenseType = LicenseTypeX.fromValue(pFaceLicenseType.value);
return vFaceLicenseType;
} finally {
calloc.free(pFaceLicenseType);
}
}