Skip to main content

参数说明

名称类型描述版本
conversationConversation要查询的会话1.0.0
searchContentString查询内容1.0.0
countint拉取数量,超过 100 条按 100 返回1.0.0
timestamplong消息时间戳,如果传 0 为当前时间1.0.0
directionJIMConst.PullDirection查询方向1.0.0

示例代码

List<Message> searchResults = JIM.getInstance().getMessageManager().searchMessageInConversation(conversation, "searchContent", 100, 0, JIMConst.PullDirection.OLDER);