SetProductFile static method

int SetProductFile({
  1. required String filePath,
})

Sets the absolute path of the Product.dat file where filePath is the absolute path of the product file (Product.dat).

This function must be called on every start of your program before any other functions are called.

The function throws a LexActivatorException on error.

Implementation

static int SetProductFile({required String filePath}) {
  int status = _lexActivatorNative.SetProductFile(
    filePath,
  );
  if (LexStatusCodes.LA_OK != status) {
    throw LexActivatorException(status);
  }
  return status;
}