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