GetLicenseType static method
Returns the license type (node-locked or hosted-floating).
The function throws a LexActivatorException on error.
Implementation
static String GetLicenseType() {
final array = calloc<Uint8>(256);
int status = _lexActivatorNative.GetLicenseType(
array.cast(),
256,
);
if (LexStatusCodes.LA_OK != status) {
throw LexActivatorException(status);
}
final licenseType = convertArrayToDartString(array);
calloc.free(array);
return licenseType.trim();
}