Sets custom chat room attributes.
If certain attributes fail to be set, the SDK returns a map of the attributes in key-value format, where the key is the attribute key and the value is the reason for the failure.
Adds a chat room admin.
Only the chat room owner can call this method.
The chat room ID.
The user ID of the chat room admin to be added.
Adds members to the allow list of the chat room.
Only the chat room owner or admin can call this method.
The chat room ID.
The user IDs of members to be added to the allow list of the chat room.
Adds a chat room listener.
The listener to add.
Adds the specified members to the block list of the chat room.
Only the chat room owner or admin can call this method.
The chat room ID.
The user IDs of members to be added to block list of the chat room.
Modifies the chat room description.
Only the chat room owner can call this method.
The chat room ID.
The new description of the chat room.
Changes the chat room name.
Only the chat room owner can call this method.
The chat room ID.
The new name of the chat room.
Transfers the chat room ownership.
Only the chat room owner can call this method.
The chat room ID.
The user ID of the new chat room owner.
Creates a chat room.
The chat room name.
The chat room description.
A welcome message for new chat room members.
The list of members invited to join the chat room.
The maximum number of members allowed to join the chat room.
The chat room instance.
Destroys a chat room.
Only the chat room owner can call this method.
The chat room ID.
Gets the allow list from the server.
Only the chat room owner or admin can call this method.
The chat room ID.
The allow list of the chat room.
Gets the chat room announcement from the server.
The chat room ID.
The chat room announcement.
Gets custom chat room attributes from the server.
The chat room ID.
The key list of custom attributes to get. If you set it as null
or leave it empty, this method retrieves all custom attributes.
Custom chat room attributes in key-value format.
Gets the chat room block list with pagination.
Only the chat room owner or admin can call this method.
The chat room ID.
The page number, starting from 1.
The number of users on the block list that you expect to get on each page.
The user IDs of the chat room members on the block list.
Gets the details of the chat room from the server.
By default, the details do not include the chat room member list.
The chat room ID.
The chat room instance. The SDK returns undefined
if the chat room does not exist.
Gets the chat room member list.
The chat room ID.
The cursor position from which to start to get data.
At the first method call, if you set cursor
as null
or an empty string, the SDK gets the data in the reverse chronological order of when users join the chat room.
The number of members that you expect to get on each page.
The list of chat room members and the cursor for the next query. See ChatCursorResult.
Uses the pagination to get the list of members who are muted in the chat room.
This method gets data from the server.
Only the chat room owner or admin can call this method.
The chat room ID.
The page number, starting from 1.
The number of muted members that you expect to get on each page.
The user IDs of muted members.
Gets chat room data from the server with pagination.
The page number, starting from 1.
The number of chat rooms that you expect to get on each page.
The list of obtained chat rooms. See ChatPageResult.
Gets the chat room by ID from the local database.
The chat room ID.
The chat room instance. The SDK returns undefined
if the chat room does not exist.
Checks whether the member is on the allow list of the chat room.
The chat room ID.
Whether the member is on the allow list of the chat room.
- true
: Yes.
- false
: No.
Joins the chat room.
To leave the chat room, you can call leaveChatRoom.
The ID of the chat room to join.
Leaves the chat room.
The ID of the chat room to leave.
Mutes all members.
Only the chat room owner or admin can call this method.
The chat room owner, admins, and members added to the allow list cannot be muted.
The chat room ID.
Mutes the specified members in a chat room.
Only the chat room owner or admin can call this method.
The chat room ID.
The user IDs of members to be muted.
The mute duration in milliseconds.
Removes all the chat room listeners.
Removes custom chat room attributes.
If certain attributes fail to be removed, the SDK returns a map of the attributes in key-value format, where the key is the attribute key and the value is the reason for the failure.
Removes administrative privileges of a chat room admin.
The chat room ID.
The user ID of the chat room admin whose administrative privileges are to be removed.
Removes the specified members from a chat room.
Only the chat room owner or admin can call this method.
The chat room ID.
The user IDs of the members to be removed.
Removes members from the allow list of the chat room.
Only the chat room owner or admin can call this method.
The chat room ID.
The user IDs of members to be removed from the allow list of the chat room.
Removes the chat room listener.
The listener to remove.
Removes the specified members from the block list of the chat room.
Only the chat room owner or admin can call this method.
The chat room ID.
The user IDs of members to be removed from the block list of the chat room.
Unmutes all members of the chat room.
Only the chat room owner or admins can call this method.
The chat room ID.
Unmutes the specified members in a chat room.
Only the chat room owner or admin can call this method.
The chat room ID.
The user IDs of members to be unmuted.
Updates the chat room announcement.
Only the chat room owner or admin can call this method.
The chat room ID.
The new chat room announcement.
Generated using TypeDoc
export manager