Skip to main content

Retrieve a paginated list of conversation information.

API Definition

/**
* Get the conversation information list by page. Results are sorted by conversation time in descending order (newest first and oldest last).
* @param count number of items to retrieve
* @param timestamp retrieval timestamp (pass 0 to use the current time)
* @param direction retrieval direction
* @return conversation information list
*/
List<ConversationInfo> getConversationInfoList(int count,
long timestamp,
JIMConst.PullDirection direction);

Code Example

List<ConversationInfo> list = JIM.getInstance().getConversationManager().getConversationInfoList(20, 0, JIMConst.PullDirection.OLDER);