QChatMessageService class Null safety

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

Constructors

QChatMessageService()
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

deleteMessage(QChatDeleteMessageParam param) Future<NIMResult<QChatDeleteMessageResult>>
删除消息
downloadAttachment(QChatDownloadAttachmentParam param) Future<NIMResult<void>>
默认情况下(SDKOPtions#preloadAttach为true),SDK收到多媒体消息后,图片和视频会自动下载缩略图,音频会自动下载文件。 如果下载原图或者原视频等,可调用该接口下载附件
getMessageHistory(QChatGetMessageHistoryParam param) Future<NIMResult<QChatGetMessageHistoryResult>>
查询历史消息
getMessageHistoryByIds(QChatGetMessageHistoryByIdsParam param) Future<NIMResult<QChatGetMessageHistoryResult>>
根据消息id查询历史消息
markMessageRead(QChatMarkMessageReadParam param) Future<NIMResult<void>>
标记消息已读,该接口存在频控,300ms内只能调用1次
markSystemNotificationsRead(QChatMarkSystemNotificationsReadParam param) Future<NIMResult<void>>
标记系统通知已读
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
resendMessage(QChatResendMessageParam param) Future<NIMResult<QChatSendMessageResult>>
重发消息
resendSystemNotification(QChatResendSystemNotificationParam param) Future<NIMResult<QChatSendSystemNotificationResult>>
重发系统通知
revokeMessage(QChatRevokeMessageParam param) Future<NIMResult<QChatRevokeMessageResult>>
撤回消息
sendMessage(QChatSendMessageParam param) Future<NIMResult<QChatSendMessageResult>>
发送消息
sendSystemNotification(QChatSendSystemNotificationParam param) Future<NIMResult<QChatSendSystemNotificationResult>>
发送系统通知
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