GetLicenseAllowedActivations static method

int GetLicenseAllowedActivations()

Returns the allowed activations of the license.

The function throws a LexActivatorException on error.

Implementation

static int GetLicenseAllowedActivations() {
  final allowedActivations = calloc<Uint32>();

  int status = _lexActivatorNative.GetLicenseAllowedActivations(
    allowedActivations,
  );

  if (LexStatusCodes.LA_OK != status) {
    throw LexActivatorException(status);
  }

  return allowedActivations.value;
}