React Native
Initialization and Login APIs
To use the Tencent Cloud Chat service, you need to initialize the SDK and log in.
API | Description |
Initializes the SDK. | |
Uninitializes the SDK. | |
Logs in. | |
Logs out. | |
Gets the UserID of the current login user. | |
Gets the login status. | |
Gets the server time. | |
Gets the version number. |
Signaling APIs
API | Description |
The invitee accepts the invitation. | |
Creates a signaling request. | |
Adds a signaling listener. | |
The inviter cancels the invitation. | |
Gets signaling information. | |
Invites a user. | |
Invites certain users in the group. | |
The invitee rejects the invitation. | |
Removes a signaling listener. |
Message APIs
API | Description |
Adds an event listener for advanced messages. | |
Appends another message to a message and adds it to the list. | |
Clears the chat history with a user from local storage and the cloud (without deleting the conversation). | |
Clears the chat history of a group from local storage and the cloud (without deleting the conversation). | |
Creates a custom message. | |
Creates an emoji message. | |
Creates a file message. | |
Creates a forward message. | |
Creates an image message. | |
Creates a location message. | |
Creates a combined message. | |
Creates an audio message. | |
Creates a targeted group message. | |
Creates a text message with the @ notification feature (unavailable for audio-video groups). | |
Creates a text message. | |
Creates a video message. | |
Deletes message extensions. | |
Deletes a message from the local storage. | |
Deletes local and roaming messages. | |
Gets the sub messages of a combined message. | |
Downloads a multimedia message. | |
Gets historical one-to-one messages. | |
Queries the one-to-one message receiving option of a user. | |
Gets historical group messages. | |
Gets the list of members who have or have not read the group message. | |
Gets historical messages (advanced API). | |
Gets message extensions. | |
Gets the URL of a multimedia message. | |
Gets message read receipts. | |
Adds a message to the message list of a one-to-one chat. | |
Adds a message to the message list of a group chat. | |
Marks all messages as read. | |
Marks one-to-one (C2C) messages as read. | |
Marks group messages as read. | |
Modifies a message. | |
Removes the listener for advanced messages. | |
Resends a message. | |
Recalls a message. | |
Searches for local messages. | |
Sends a message. | |
Sends message read receipts. | |
Sends a reply message. | |
Sets the one-to-one message receiving option of a user. | |
Sets the group message receiving option. | |
Sets custom message data. | |
Sets custom message data. | |
Gets message extensions. |
Conversation APIs
API | Description |
Sets a conversation listener. | |
Deletes a conversation. | |
Gets the information of a conversation. | |
Gets the conversation list. | |
Gets the list of specified conversations by conversation IDs. | |
Gets the total unread message count of a conversation. | |
Pins a conversation to the top. | |
Removes a conversation listener. | |
Sets a draft for a conversation. |
Relationship Chain APIs
API | Description |
Accepts a friend request. | |
Adds a friend. | |
Adds a contacts listener. | |
Adds friends to a friend list. | |
Adds a user to the blocklist. | |
Checks your relationship with a specified user. | |
Creates a friend list. | |
Deletes a friend request. | |
Deletes a friend list. | |
Accepts a friend request. | |
Removes a user from the blocklist. | |
Deletes friends. | |
Gets the blocklist. | |
Gets the list of friend requests. | |
Gets the information of friend lists. | |
Gets the contacts. | |
Gets the profiles of specified friends. | |
Rejects a friend request. | |
Removes a contacts listener. | |
Modifies the name of a friend list. | |
Searches for friends. | |
Marks a friend request as read. | |
Sets the profile of a specified friend. |
Group APIs
API | Description |
Adds an event listener for groups. | |
Disbands a group. | |
Joins a group. | |
Leaves a group. | |
Removes an event listener for groups. | |
Accepts a request to join a group. | |
Creates a group. | |
Creates a topic. | |
Deletes group attributes. | |
Deletes a topic. | |
Gets the list of requests to join a group. | |
Gets group attributes. | |
Gets the group member list. | |
Gets the profiles of specified group members. | |
Gets the number of online group members. | |
Gets the profiles of groups. | |
Gets the list of community groups the current user has joined. | |
Gets the list of groups the current user has joined. | |
Gets the topics of a group. | |
Initializes group attributes. | |
Invites users to a group. | |
Kicks members out of a group. | |
Mutes a group member. | |
Rejects a request to join a group. | |
Searches for group members. | |
Searches for group profiles. | |
Marks all group requests as read. | |
Sets group attributes. | |
Modifies the profile of a group. | |
Modifies the profile of a specified group member. | |
Sets a role for a group member. | |
Sets topic attributes. | |
Transfers the ownership of a group. |
Offline Push APIs
API | Description |
This API can be called when the app detects that the app switches to the background. | |
This API can be called when the app detects that the app switches to the foreground. | |
Configures offline push. |