GetLicenseUserCompany static method

String GetLicenseUserCompany()

Returns the company associated with the license user.

The function throws a LexActivatorException on error.

Implementation

static String GetLicenseUserCompany() {
  final array = calloc<Uint8>(256);
  int status = _lexActivatorNative.GetLicenseUserCompany(
    array.cast(),
    256,
  );
  if (LexStatusCodes.LA_OK != status) {
    throw LexActivatorException(status);
  }
  final licenseUserCompany = convertArrayToDartString(array);
  calloc.free(array);
  return licenseUserCompany.trim();
}