V2TimConversationListener
Introduction
The listener registered for conversation changes events.
Parameter introduction
onSyncServerStart
- Parameter type : VoidCallback
- Parameter description : When server conversation synchronization starts, the SDK automatically synchronizes server conversations after a successful login or network reconnection. You can monitor such an event and display the event progress on the UI.
onSyncServerFinish
- Parameter type : VoidCallback
- Parameter description : When server conversation synchronization is completed, if there are conversation changes, the SDK notifies users of the changes via onNewConversation or onConversationChanged callback.
onSyncServerFailed
- Parameter type : VoidCallback
- Parameter description : Server conversation synchronization failed.
onNewConversation
- Parameter type : OnNewConversation
- Parameter description : If there is a new conversation (such as receiving a one-to-one chat message from a new colleague or being added to a new group), use "lastMessage -> timestamp" to sort the conversation list again.
onConversationChanged
- Parameter type : OnConversationChanged
- Parameter description : If the key information of some conversations changes (for example, the unread count changes, or the last message is updated), use "lastMessage -> timestamp" to sort the conversation list again.
onTotalUnreadMessageCountChanged
- Parameter type : OnTotalUnreadMessageCountChanged
- Parameter description : Notify the changes of the total unread message count of all conversations.
onConversationGroupCreated
- Parameter type : OnConversationGroupCreated
- Parameter description : Conversation group has been created.
onConversationGroupDeleted
- Parameter type : OnConversationGroupDeleted
- Parameter description : Conversation group has been deleted.
onConversationGroupNameChanged
- Parameter type : OnConversationGroupNameChanged
- Parameter description : Conversation group name has been changed.
onConversationsAddedToGroup
- Parameter type : OnConversationsAddedToGroup
- Parameter description : New conversations have been added to this conversation group.
onConversationsDeletedFromGroup
- Parameter type : OnConversationGroupCreated
- Parameter description : Conversations have been deleted from this conversation group.