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

onConversationGroupCreated

onConversationGroupDeleted

onConversationGroupNameChanged

onConversationsAddedToGroup

onConversationsDeletedFromGroup

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

results matching ""

    No results matching ""