GetLicenseExpiryDate static method

int GetLicenseExpiryDate()

Returns the license expiry date timestamp.

The function throws a LexActivatorException on error.

Implementation

static int GetLicenseExpiryDate() {
  final expiryDate = calloc<Uint32>();
  int status = _lexActivatorNative.GetLicenseExpiryDate(
    expiryDate,
  );
  if (LexStatusCodes.LA_OK != status) {
    throw LexActivatorException(status);
  }

  return expiryDate.value;
}