SetActivationMetadata static method

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

Sets the 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 activation details of the license in dashboard.

The function throws a LexActivatorException on error.

Implementation

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