setConfigContent static method

void setConfigContent(
  1. LSLApiConfig content
)

Sets the configuration for the LSL library.

@param content The configuration LSLApiConfig.

@note: This should be called before any other LSL operations. @note: see https://labstreaminglayer.readthedocs.io/info/lslapicfg.html#configuration-file-contents

Implementation

static void setConfigContent(LSLApiConfig content) {
  final contentPtr = content.toIniString().toNativeUtf8();
  lsl_set_config_content(contentPtr.cast());
  contentPtr.free();
}