OnNewConversation

Introduction

The callback of new conversation added event.

You can sort the conversation list according to the orderKey or the timestamp of the lastMessage, if the order changes.

Returned template

OnNewConversation = void Function(
List<V2TimConversation> conversationList
)

Return value details

name type description
conversationList List< V2TimConversation > The list of the newly added conversation.

Code example

    V2TimConversationListener listener = V2TimConversationListener(
        onNewConversation: (List<V2TimConversation> conversationList) => {
            });
    TencentImSDKPlugin.v2TIMManager
        .getConversationManager()
        .addConversationListener(listener: listener);

results matching ""

    No results matching ""