# 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 FaceException An error has occurred during Face 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 = faceSDK.id3FaceLicense_Reactivate(pHardwareCode ?? nullptr, pProductReference ?? nullptr, pPath ?? nullptr);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
      } finally {
        if (pHardwareCode != null) {
          calloc.free(pHardwareCode);
        }
        if (pProductReference != null) {
          calloc.free(pProductReference);
        }
        if (pPath != null) {
          calloc.free(pPath);
        }
      }
    }