getConversationListByPage

public abstract void getConversationListByPage(IRongCoreCallback.ResultCallback<List<Conversation>> callback, long timeStamp, int count, Array<ConversationType> conversationTypes)

Retrieves the conversation list in a paginated manner.

Since

5.0.0

Parameters

callback

Callback to handle the retrieved conversation list.

timeStamp

Timestamp in milliseconds. Conversations before this timestamp will be retrieved. Pass 0 to start from the latest conversation. Refer to getSentTime.

count

Number of conversations to retrieve. If the actual number of retrieved conversations is less than the specified count, it indicates that all data has been fetched. It is recommended not to exceed 10 conversations per request, as fetching a large number of conversations at once may cause cross-process communication to crash, leading to failure in retrieving the conversation list and interruption of the communication connection.

conversationTypes

Types of conversations to retrieve.


public abstract void getConversationListByPage(IRongCoreCallback.ResultCallback<List<Conversation>> callback, long timeStamp, int count, boolean topPriority, Array<ConversationType> conversationTypes)

Fetches the conversation list with pagination.

Since

5.6.9

Parameters

callback

The callback for retrieving the conversation list.

timeStamp

The timestamp in milliseconds. Conversations before this timestamp will be fetched. Passing 0 indicates fetching from the latest conversation. Refer to getSentTime.

count

The number of conversations to retrieve. If the actual number of retrieved conversations is less than the specified count, it indicates that all data has been fetched. It is recommended not to exceed 10, as fetching too many conversations at once may cause cross-process communication crashes, leading to failure in retrieving the conversation list and interruption of the communication connection.

topPriority

Whether to prioritize pinned messages (determines the sorting of the query results. If true, pinned conversations are returned first; if false, results are sorted solely by conversation time).

conversationTypes

The types of conversations to retrieve.