GetLicenseTotalActivations static method

int GetLicenseTotalActivations()

Returns the total activations of the license.

The function throws a LexActivatorException on error.

Implementation

static int GetLicenseTotalActivations() {
  final totalActivations = calloc<Uint32>();

  int status = _lexActivatorNative.GetLicenseTotalActivations(
    totalActivations,
  );

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