getConversationList

public abstract void getConversationList(RongIMClient.ResultCallback<List<Conversation>> callback)

Retrieves the local conversation list of the current user. The returned list includes the following types of conversations: one-to-one chat, group, discussion group, and system conversation.

This method reads the conversation list from the local database. The returned conversation list is sorted in chronological order, with pinned conversations appearing at the top. If you need to retrieve other types of conversation lists, you can use getConversationList.This method must be called after the database connection is opened, as indicated by the OnDatabaseOpened callback in ConnectCallback.

Parameters

callback

The callback for retrieving the conversation list.


public abstract void getConversationList(RongIMClient.ResultCallback<List<Conversation>> callback, Array<ConversationType> conversationTypes)

Retrieves the local conversation list of the current user based on the conversation type.

Parameters

callback

Callback for retrieving the conversation list.

conversationTypes

The types of conversations to retrieve.