createRoom method

Future<TUIActionCallback> createRoom(
  1. TUIRoomInfo roomInfo
)

Implementation

Future<TUIActionCallback> createRoom(TUIRoomInfo roomInfo) {
  String userData = Tools.generateUserData();
  Completer<TUIActionCallback> completer = Completer();
  _actionCallback2Future(userData, completer);

  _engineSDK.Dart_CreateRoom(
      _engineFFIPointer,
      Tools.string2PointerChar(json.encode(roomInfo.toJson())),
      Tools.string2PointerChar(userData));
  return completer.future;
}