QChatMessageService class

圈组消息服务 仅支持Android 和 iOS

Annotations

Constructors

QChatMessageService()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addQuickComment(QChatAddQuickCommentParam param) Future<NIMResult<void>>
添加一条快捷评论
areMentionedMeMessages(QChatAreMentionedMeMessagesParam param) Future<NIMResult<QChatAreMentionedMeMessagesResult>>
批量查询消息是否@当前用户
clearMessageCache() Future<NIMResult<void>>
清空消息缓存
clearMsgNotifyAndroid() Future<NIMResult<void>>
清除消息通知栏,仅支持Android 平台
deleteMessage(QChatDeleteMessageParam param) Future<NIMResult<QChatDeleteMessageResult>>
删除消息
downloadAttachment(QChatDownloadAttachmentParam param) Future<NIMResult<void>>
默认情况下(SDKOPtions#preloadAttach为true),SDK收到多媒体消息后,图片和视频会自动下载缩略图,音频会自动下载文件。 如果下载原图或者原视频等,可调用该接口下载附件
getLastMessageOfChannels(QChatGetLastMessageOfChannelsParam param) Future<NIMResult<QChatGetLastMessageOfChannelsResult>>
查询频道的最后一条消息
getMentionedMeMessages(QChatGetMentionedMeMessagesParam param) Future<NIMResult<QChatGetMentionedMeMessagesResult>>
分页查询指定频道@我的消息
getMessageCache(int qchatServerId, int qchatChannelId) Future<NIMResult<List<QChatMessageCache>?>>
指定通道查询消息缓存 qchatServerId 服务器id qchatChannelId 频道id
getMessageHistory(QChatGetMessageHistoryParam param) Future<NIMResult<QChatGetMessageHistoryResult>>
查询历史消息
getMessageHistoryByIds(QChatGetMessageHistoryByIdsParam param) Future<NIMResult<QChatGetMessageHistoryResult>>
根据消息id查询历史消息
getMessageThreadInfos(QChatGetMessageThreadInfosParam param) Future<NIMResult<QChatGetMessageThreadInfosResult>>
批量查询thread聊天信息
getQuickComments(QChatGetQuickCommentsParam param) Future<NIMResult<QChatGetQuickCommentsResult>>
批量查询快捷评论
getReferMessages(QChatGetReferMessagesParam param) Future<NIMResult<QChatGetReferMessagesResult>>
根据消息查询被引用的消息详情
getThreadMessages(QChatGetThreadMessagesParam param) Future<NIMResult<QChatGetThreadMessagesResult>>
查询thread聊天的历史
markMessageRead(QChatMarkMessageReadParam param) Future<NIMResult<void>>
标记消息已读,该接口存在频控,300ms内只能调用1次
markSystemNotificationsRead(QChatMarkSystemNotificationsReadParam param) Future<NIMResult<void>>
标记系统通知已读
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeQuickComment(QChatRemoveQuickCommentParam param) Future<NIMResult<void>>
删除一条快捷评论
replyMessage(QChatReplyMessageParam param) Future<NIMResult<QChatSendMessageResult>>
回复消息
resendMessage(QChatResendMessageParam param) Future<NIMResult<QChatSendMessageResult>>
重发消息
resendSystemNotification(QChatResendSystemNotificationParam param) Future<NIMResult<QChatSendSystemNotificationResult>>
重发系统通知
revokeMessage(QChatRevokeMessageParam param) Future<NIMResult<QChatRevokeMessageResult>>
撤回消息
searchMsgByPage(QChatSearchMsgByPageParam param) Future<NIMResult<QChatSearchMsgByPageResult>>
检索消息
sendMessage(QChatSendMessageParam param) Future<NIMResult<QChatSendMessageResult>>
发送消息
sendSystemNotification(QChatSendSystemNotificationParam param) Future<NIMResult<QChatSendSystemNotificationResult>>
发送系统通知
sendTypingEvent(QChatSendTypingEventParam param) Future<NIMResult<QChatSendTypingEventResult>>
发送消息正在输入事件 接收方需要调用订阅指定频道事件订阅正在输入事件后后才能就可以收到指定频道的正在输入事件
toString() String
A string representation of this object.
inherited
updateMessage(QChatUpdateMessageParam param) Future<NIMResult<QChatUpdateMessageResult>>
更新消息
updateSystemNotification(QChatUpdateSystemNotificationParam param) Future<NIMResult<QChatUpdateSystemNotificationResult>>
更新系统通知,除了更新自定义系统通知外,还允许更新邀请服务器成员、 拒绝邀请、申请加入服务器、拒绝申请这几种内置系统通知

Operators

operator ==(Object other) bool
The equality operator.
inherited