RongIMLib
View Markdown
Preparing search index...
GetHistoryMessageOption
Interface GetHistoryMessageOption
获取历史消息配置项
interface
GetHistoryMessageOption
{
timestamp
?:
number
;
count
?:
number
;
order
?:
0
|
1
;
}
Hierarchy
Omit
<
IGetHistoryMessageOption
,
"messageType"
>
GetHistoryMessageOption
Index
Properties
timestamp?
count?
order?
Properties
Optional
timestamp
timestamp
?:
number
获取此时间之前的消息,0 为从当前时间拉取
Optional
count
count
?:
number
获取消息的数量,有效值范围 [1-100],默认值
20
SDK < 5.7.4,范围为 [1-20]
SDK ≧ 5.7.4,范围为 [1-100]
Optional
order
order
?:
0
|
1
获取消息的排列顺序
0: 升序
1: 降序
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
timestamp
count
order
RongIMLib
Loading...
获取历史消息配置项