onMessagesLoaded property
- @Deprecated('建议在调用接口时直接传入 callback 参数,此回调从 5.4.0 版本开始不推荐使用')
getter/setter pair
ZH
loadMessages 的接口监听
code接口回调的状态码,0 代表成功,非 0 代表出现异常type会话类型targetId会话 IDchannelId频道 ID,仅支持超级群使用,其他会话类型传 null 即可。sentTime当前消息时间戳order获取消息的方向。BEFORE:获取 sentTime 之前的消息 (时间递减),AFTER:获取 sentTime 之后的消息 (时间递增)messages获取到的消息集合 @deprecated 请使用对应接口提供的 callback 获取结果。
EN
loadMessages Interface Listener
codeThe status code of the interface callback. 0 indicates success, while non-zero indicates an exception.typeThe type of the conversation.targetIdThe ID of the conversation.channelIdThe channel ID, which is only supported for ultra groups. For other conversation types, pass null.sentTimeThe timestamp of the current message.orderThe direction in which messages are retrieved. BEFORE: Retrieve messages before sentTime (in descending order). AFTER: Retrieve messages after sentTime (in ascending order).messagesThe collection of retrieved messages. @deprecated Please use the callback provided by the corresponding interface to obtain the result.
Implementation
@Deprecated('建议在调用接口时直接传入 callback 参数,此回调从 5.4.0 版本开始不推荐使用')
Function(
int? code,
RCIMIWConversationType? type,
String? targetId,
String? channelId,
int? sentTime,
RCIMIWTimeOrder? order,
List<RCIMIWMessage>? messages,
int? syncTimestamp,
bool? hasMoreMsg,
)?
onMessagesLoaded;