resetUid method

String resetUid()

Resets the stream info's UID. @note This is not a common operation and should be used with caution. This retuns the new UID as a string.

Implementation

String resetUid() {
  if (_streamInfo == null) {
    throw LSLException('StreamInfo not created or destroyed');
  }
  final Pointer<Char> result = lsl_reset_uid(_streamInfo!);
  if (result.isNullPointer) {
    throw LSLException('Failed to reset UID');
  }
  final uid = result.cast<Utf8>().toDartString();
  return uid;
}