get Conversation List By Page
public abstract void getConversationListByPage(IRongCoreCallback.ResultCallback<List<Conversation>> callback, long timeStamp, int count, Array<ConversationType> conversationTypes)
分页获取会话列表。
Since
5.0.0
Parameters
callback
获取会话列表的回调。
time Stamp
时间戳(毫秒),通过获取从此时间戳往前的会话,传入 0 表示从最新会话开始获取。参考 getSentTime 。
count
取回的会话数量。当实际取回的会话数量小于 count 值时,表明已取完数据。 建议此数值不要超过 10 个,当一次性获取的会话数过大时, 会导致跨进程通信崩溃,引发获取会话列表失败及通信连接被中断。
conversation Types
要获取的会话类型。
public abstract void getConversationListByPage(IRongCoreCallback.ResultCallback<List<Conversation>> callback, long timeStamp, int count, boolean topPriority, Array<ConversationType> conversationTypes)
分页获取会话列表。
Since
5.6.9
Parameters
callback
获取会话列表的回调。
time Stamp
时间戳(毫秒),通过获取从此时间戳往前的会话,传入 0 表示从最新会话开始获取。参考 getSentTime 。
count
取回的会话数量。当实际取回的会话数量小于 count 值时,表明已取完数据。 建议此数值不要超过 10 个,当一次性获取的会话数过大时, 会导致跨进程通信崩溃,引发获取会话列表失败及通信连接被中断。
top Priority
是否优先显示置顶消息(查询结果的排序方式,是否置顶优先,传 true 表示置顶会话优先返回,传 false 结果只以会话时间排序)
conversation Types
要获取的会话类型。