OnConversationChangedCallback
Introduction
The callback of changes to some conversations event.
You can sort the conversation list according to the orderKey or the timestamp of the lastMessage, if the order changes.
Returned template
OnConversationChangedCallback = void Function(
List<V2TimConversation> conversationList
)
Return value details
| name | type | description |
|---|---|---|
| conversationList | List< V2TimConversation > | The changed conversation list. |
Code example
V2TimConversationListener listener = V2TimConversationListener(
onConversationChanged: (List<V2TimConversation> conversationList) => {
}
);
TencentImSDKPlugin.v2TIMManager
.getConversationManager()
.addConversationListener(listener: listener);