setUserId static method

Future<V2TXLiveCode> setUserId(
  1. String userId
)

Implementation

static Future<V2TXLiveCode> setUserId(String userId) async {
  LiveLoadDynamicLib.getPluginChannel().invokeMethod('initialize');
  ffi.Pointer<ffi.Int8> nativeUserId = userId.toNativeUtf8().cast<ffi.Int8>();
  _premierFFIBindings.setUserId(nativeUserId);

  calloc.free(nativeUserId);
  return V2TXLIVE_OK;
}