SetTrialActivationMetadata static method

int SetTrialActivationMetadata({
  1. required String key,
  2. required String value,
})

Sets the trial activation metadata with a key, value pair.

key, and value are strings of maximum length 256 characters with utf-8 encoding. The metadata appears along with the trial activation details of the product in dashboard.

The function throws a LexActivatorException on error.

Implementation

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