V2TimConversationListener

Introduction

The listener registered for conversation changes events.

Parameter introduction

onSyncServerStart

  • Parameter type : VoidCallback

  • Supported Platform: All

  • 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

  • Supported Platform: All

  • 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

  • Supported Platform: All

  • Parameter description : Server conversation synchronization failed.

onNewConversation

  • Parameter type : OnNewConversation

  • Supported Platform: All

  • 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 : OnConversationChangedCallback

  • Supported Platform: All

  • 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

  • Supported Platform: All

  • Parameter description : Notify the changes of the total unread message count of all conversations.

onConversationGroupCreated

  • Parameter type : OnConversationGroupCreated

  • Supported Platform: All

  • Parameter description : Conversation group has been created.

onConversationGroupDeleted

  • Parameter type : OnConversationGroupDeleted

  • Supported Platform: All

  • Parameter description : Conversation group has been deleted.

onConversationGroupNameChanged

onConversationsAddedToGroup

  • Parameter type : OnConversationsAddedToGroup

  • Supported Platform: All

  • Parameter description : New conversations have been added to this conversation group.

onConversationsDeletedFromGroup

  • Parameter type : OnConversationsDeletedFromGroup

  • Supported Platform: All

  • Parameter description : Conversations have been deleted from this conversation group.

results matching ""

    No results matching ""