reactivate static method

void reactivate(
  1. String? hardwareCode,
  2. String? productReference,
  3. String? path
)

Reactivates a license file using the host hardware code and the product reference.

param hardwareCode The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function. param productReference The product reference. param path Path to the license file. throws DocumentException An error has occurred during Document Library execution.

Implementation

static void reactivate(String? hardwareCode, String? productReference, String? path) {
  Pointer<Char>? pHardwareCode = hardwareCode?.toNativeUtf8().cast<Char>();
  Pointer<Char>? pProductReference = productReference?.toNativeUtf8().cast<Char>();
  Pointer<Char>? pPath = path?.toNativeUtf8().cast<Char>();
  try {
    var err = documentSDK.id3DocumentLicense_Reactivate(pHardwareCode ?? nullptr, pProductReference ?? nullptr, pPath ?? nullptr);
    if (err != DocumentError.success.value) {
      throw DocumentException(err);
    }
  } finally {
    if (pHardwareCode != null) {
      calloc.free(pHardwareCode);
    }
    if (pProductReference != null) {
      calloc.free(pProductReference);
    }
    if (pPath != null) {
      calloc.free(pPath);
    }
  }
}