getConversationListByPage

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

Fetches the conversation list in a paginated manner.

Since

5.1.1

Parameters

callback

Callback for retrieving the conversation list.

timeStamp

Timestamp in milliseconds. Conversations before this timestamp will be retrieved. Pass 0 to start 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 count value, it indicates that all data has been fetched. It is recommended not to exceed 10 for this value, 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

The types of conversations to retrieve.

channelId

The business identifier of the conversation to which the message belongs.


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

Retrieves the conversation list in a paginated manner.

Since

5.6.9

Parameters

callback

The callback for retrieving the conversation list.

timeStamp

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

count

The number of conversations to retrieve. If the actual number of retrieved conversations is less than this value, 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 to crash, leading to failure in retrieving the conversation list and interruption of the communication connection.

conversationTypes

The types of conversations to retrieve.

channelId

The business identifier of the conversation to which the messages belong.

topPriority

Whether to prioritize displaying pinned messages (sorting method for query results, whether pinned messages take precedence. Pass true to prioritize pinned conversations, pass false to sort results only by conversation time).