getModuleValue static method
- String? name
Retrieves the value associated to the specified license module.
param name Name of the requested module. return The value associated to the licence module. throws FaceException An error has occurred during Face Library execution.
Implementation
static int getModuleValue(String? name) {
Pointer<Char>? pName = name?.toNativeUtf8().cast<Char>();
Pointer<Int> pValue = calloc();
try {
var err = faceSDK.id3FaceLicense_GetModuleValue(pName ?? nullptr, pValue);
if (err != FaceError.success.value) {
throw FaceException(err);
}
final vValue = pValue.value;
return vValue;
} finally {
if (pName != null) {
calloc.free(pName);
}
calloc.free(pValue);
}
}