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