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 current server time (not supported on web). | |
Gets the version number. | |
Conversation feature entry. | |
Contacts feature entry. | |
Advanced group feature entry. | |
Advanced message feature entry. | |
Gets the version number. | |
Signaling entry. |
API | Description |
Adds a signaling listener. | |
Removes a signaling listener. | |
Invites a user. | |
Invites certain users in the group. | |
The inviter cancels the invitation. | |
The invitee accepts the invitation. | |
The invitee rejects the invitation. | |
Gets signaling information. | |
Creates a signaling request. |
id
field will be returned. You can pass in the id
field and related information to the message sending API (sendMessage
) to send the message.API | Description |
Creates a text message. | |
Creates a custom message. | |
Creates an image message. | |
Creates an audio message. | |
Creates a video message. | |
Creates an @ text message. | |
Creates a file message. | |
Creates a location message. | |
Creates an emoji message. | |
Creates a combined message. | |
Creates a forward message. | |
Creates a targeted group message. | |
Adds a multi-element message. |
API | Description |
Sets an event listener for advanced messages. | |
Removes the event listener for advanced messages. | |
Gets historical one-to-one (C2C) messages. | |
Gets historical messages (advanced API). | |
Gets historical group messages. | |
Marks one-to-one (C2C) messages as read. | |
Marks group messages as read. | |
Marks all messages as read. | |
Deletes a message from the local storage. | |
Deletes local and roaming messages. | |
Adds a message to the message list of a group chat. | |
Adds a message to the message list of a one-to-one chat. | |
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). | |
Gets the sub messages of a combined message. | |
Resends a message. | |
Sets the one-to-one message receiving option for a user (batch setting supported). | |
Queries the one-to-one message receiving option of a user. | |
Modifies the group message receiving option. | |
Sets custom message data (saved locally, will not be sent to the peer end, and will become invalid after the app is uninstalled and reinstalled). | |
Sets custom message data and marks whether a voice or video message is played (such a message will be saved locally, not be sent to the peer end, and become invalid after the app is uninstalled and reinstalled). | |
Recalls a message. By default, you can recall only messages that are sent within two minutes. You can customize the time limit for message recall via the console (Feature Configuration > Login and Message > Message Recall Settings). | |
Modifies a message. | |
Sends a message. | |
Sends a reply message. | |
Searches for local messages. | |
Sends group message read receipts. | |
Gets read receipts for messages sent by yourself. | |
Gets the list of members who have (or have not) read a message sent by yourself. |
API | Description |
Adds an event listener for groups. | |
Sets an event listener for groups. | |
Removes an event listener for groups. | |
Creates a group (advanced). The group information and the initial group members can be set during group creation. | |
Joins a group. | |
Leaves a group. | |
Deletes a group. Only the group owner and group admin can delete the group. | |
Gets the list of groups the current user has joined, excluding audio-video groups. | |
Gets the profiles of groups. | |
Modifies the profile of a group. | |
Initializes group attributes. This will clear the existing group attribute list. | |
Sets group attributes. If the group attributes already exist, their values are updated. Otherwise, the group attributes are added. | |
Deletes specified group attributes. Passing in null for keys means clearing all group attributes. | |
Gets specified group attributes. Passing in null for keys means getting all group attributes. | |
Searches for groups. | |
Gets the number of online users in a group. (This API is currently supported only by audio-video groups.) | |
Gets the group member list. | |
Gets the profiles of specified group members. | |
Modifies the profile of a specified group member. | |
Searches for group members. | |
Mutes a group member. | |
Removes members from a group. | |
Sets a role for a group member. | |
Transfers the ownership of a group. | |
Invites users to a group. | |
Gets the list of requests to join a group. | |
Accepts a request to join a group. | |
Rejects a request to join a group. | |
Marks the request list as read. | |
Gets the list of community groups the current user has joined. | |
Creates a topic. | |
Deletes a topic. | |
Sets topic attributes. | |
Gets the topics of a group. |
API | Description |
Adds a contacts listener. | |
Removes a contacts listener. | |
Sets a conversation listener. | |
Gets the conversation list. | |
Gets the list of specified conversations by conversation IDs. | |
Pins a conversation to the top. | |
Gets the total unread message count of a conversation. | |
Gets a specified conversation. | |
Deletes a conversation. | |
Sets a draft for a conversation. |
API | Description |
Gets user profiles. | |
Gets users' online statuses. | |
Modifies one's own user profile. | |
Sets the status of the current logged-in user. | |
Blocks messages from a user, which means adding the user to the blocklist. | |
Unblocks messages from a user, which means removing the user from the blocklist. | |
Gets the blocklist. |
API | Description |
Sets the APNs offline push listener. | |
Configures offline push. | |
Configures offline push. | |
Configures offline push. |
API | Description |
Sets a contacts listener to receive friend and blocklist change events. | |
Adds a contacts listener. | |
Removes a contacts listener. | |
Gets the contacts. | |
Gets the profiles of specified friends. | |
Sets the profile of a specified friend. | |
Adds a friend. | |
Deletes friends. | |
Checks your relationship with a specified user. | |
Gets the list of friend requests. | |
Accepts a friend request. | |
Rejects a friend request. | |
Deletes a friend request. | |
Marks a friend request as read. | |
Creates a friend list. | |
Gets the information of friend lists. | |
Deletes a friend list. | |
Modifies the name of a friend list. | |
Adds friends to a friend list. | |
Deletes friends from a friend list. | |
Searches for friends. |
この記事はお役に立ちましたか?