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 BiosealException An error has occurred during Bioseal 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 = biosealSDK.id3BiosealLicense_Reactivate(pHardwareCode ?? nullptr, pProductReference ?? nullptr, pPath ?? nullptr);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
  } finally {
    if (pHardwareCode != null) {
      calloc.free(pHardwareCode);
    }
    if (pProductReference != null) {
      calloc.free(pProductReference);
    }
    if (pPath != null) {
      calloc.free(pPath);
    }
  }
}