GetActivationMetadata static method
Returns the activation metadata associated with the key
.
The function throws a LexActivatorException on error.
Implementation
static String GetActivationMetadata(String key) {
final array = calloc<Uint8>(256);
int status = _lexActivatorNative.GetActivationMetadata(
key,
array.cast(),
256,
);
if (LexStatusCodes.LA_OK != status) {
throw LexActivatorException(status);
}
final activationMetadata = convertArrayToDartString(array);
calloc.free(array);
return activationMetadata.trim();
}