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