~english
The ChatClient class, which is the entry point of the Chat SDK.
With this class, you can log in, log out, and access other functionalities such as group and chatroom.
~end
~english
The conversation class, indicating a one-to-one chat, a group chat, or a conversation chat. It contains the messages that are sent and received within the conversation.
~english
The ChatCursorResult class, which specifies the cursor from which to query results.
When querying using this class, the SDK returns the queried instance and the cursor.
~english
The message status event class.
During message delivery, the message ID will be changed from a local uuid to a global unique ID that is generated by the server to uniquely identify a message on all devices using the SDK.
This API should be implemented in the chat page widget to listen for message status changes.
~end
~english
The message Reaction instance class, which has the following attributes:
Reaction: The message Reaction.
UserCount: The count of users that added the Reaction.
UserList: The list of users that added the Reaction.
isAddedBySelf: Whether the current user added this Reaction.
~end
~english
The multi-device event handler.
Listens for callback for the current user's actions on other devices, including contact changes, group changes, and thread changes.
~english
The ChatPageResult class, which is returned when calling the methods that fetch data by pagination.
The SDK also returns the number of remaining pages and the data count of the next page. If the dada count is less than the count you set, there is no more data on server.
~english
The presence property class that contains presence properties, including the publisher's user ID and current presence state, and the platform used by the online device, as well as the presence's extension information, update time, and subscription expiration time.
~end
~english
The chat room manager class, which manages user joining and exiting the chat room, retrieving the chat room list, and managing member privileges.
The sample code for joining a chat room: