createRoom abstract method
Create a room with advanced settings
Available since: 1.3.0.
Description: Users can create and join rooms through this api, other users can join this room through joinRoom function.
Use cases: When you need to create a multi-person chat scenario with custom attributes, use this API to create and join a room.
When to call: Can be called after login.
Caution: After all users leave the room, it will be automatically destroyed. A user can be in at most 5 rooms at the same time.
Restrictions: If the room already exists, calling this API will result in an error. Please refer to the returned error code for handling.
Related callbacks: The result of creating a room can be obtained through the onRoomCreated callback.
Related APIs: Use joinRoom to join a room, and leaveRoom to leave a room.
roomInfoThe configuration information of the room to be created.configThe advanced properties of the room to be created.
Implementation
Future<ZIMRoomCreatedResult> createRoom(
ZIMRoomInfo roomInfo, [
ZIMRoomAdvancedConfig? config,
]);