NIMSDK-AOS
10.6.0
|
在文件 QChatMessageService.java 第 56 行定义.
InvocationFuture<Void> com.netease.nimlib.sdk.qchat.QChatMessageService.addQuickComment | ( | @NonNull QChatAddQuickCommentParam | param | ) |
添加一条快捷评论
param |
InvocationFuture<QChatAreMentionedMeMessagesResult> com.netease.nimlib.sdk.qchat.QChatMessageService.areMentionedMeMessages | ( | @NonNull QChatAreMentionedMeMessagesParam | param | ) |
void com.netease.nimlib.sdk.qchat.QChatMessageService.clearMessageCache | ( | ) |
清空消息缓存
void com.netease.nimlib.sdk.qchat.QChatMessageService.clearMsgNotify | ( | ) |
清除消息通知栏
InvocationFuture<QChatDeleteMessageResult> com.netease.nimlib.sdk.qchat.QChatMessageService.deleteMessage | ( | @NonNull QChatDeleteMessageParam | param | ) |
boolean com.netease.nimlib.sdk.qchat.QChatMessageService.deleteTextCache | ( | long | serverId, |
long | channelId | ||
) |
删除数据。 serverId > 0 && channelId > 0:删除指定频道的数据 serverId > 0 && channelId == 0:删除指定服务器下所有频道的数据 serverId == 0 && channelId > 0:返回失败 serverId == 0 && channelId == 0:清空数据
serverId | 服务器Id |
channelId | 频道Id |
AbortableFuture<Void> com.netease.nimlib.sdk.qchat.QChatMessageService.downloadAttachment | ( | QChatDownloadAttachmentParam | param | ) |
默认情况下(SDKOPtions::preloadAttach为true),SDK收到多媒体消息后,图片和视频会自动下载缩略图,音频会自动下载文件。如果下载原图或者原视频等,可调用该接口下载附件
param |
InvocationFuture<QChatGetCommentatorsResult> com.netease.nimlib.sdk.qchat.QChatMessageService.getCommentators | ( | @NonNull QChatGetCommentatorsParam | param | ) |
InvocationFuture<QChatGetLastMessageOfChannelsResult> com.netease.nimlib.sdk.qchat.QChatMessageService.getLastMessageOfChannels | ( | @NonNull QChatGetLastMessageOfChannelsParam | param | ) |
InvocationFuture<QChatGetMentionedMeMessagesResult> com.netease.nimlib.sdk.qchat.QChatMessageService.getMentionedMeMessages | ( | @NonNull QChatGetMentionedMeMessagesParam | param | ) |
InvocationFuture<List<QChatMessageCache> > com.netease.nimlib.sdk.qchat.QChatMessageService.getMessageCache | ( | long | qchatServerId, |
long | qchatChannelId | ||
) |
指定通道查询消息缓存
qchatChannelId | 圈组通道名 |
List<QChatMessageCache> com.netease.nimlib.sdk.qchat.QChatMessageService.getMessageCacheBlock | ( | long | qchatServerId, |
long | qchatChannelId | ||
) |
指定通道查询消息缓存(同步接口)
qchatChannelId | 圈组通道名 |
InvocationFuture<QChatGetMessageHistoryResult> com.netease.nimlib.sdk.qchat.QChatMessageService.getMessageHistory | ( | @NonNull QChatGetMessageHistoryParam | param | ) |
InvocationFuture<QChatGetMessageHistoryResult> com.netease.nimlib.sdk.qchat.QChatMessageService.getMessageHistoryByIds | ( | @NonNull QChatGetMessageHistoryByIdsParam | param | ) |
InvocationFuture<QChatGetMessageThreadInfosResult> com.netease.nimlib.sdk.qchat.QChatMessageService.getMessageThreadInfos | ( | @NonNull QChatGetMessageThreadInfosParam | param | ) |
批量查询thread聊天信息
param |
InvocationFuture<QChatGetQuickCommentsResult> com.netease.nimlib.sdk.qchat.QChatMessageService.getQuickComments | ( | @NonNull QChatGetQuickCommentsParam | param | ) |
批量查询快捷评论
param |
InvocationFuture<QChatGetReferMessagesResult> com.netease.nimlib.sdk.qchat.QChatMessageService.getReferMessages | ( | @NonNull QChatGetReferMessagesParam | param | ) |
根据消息查询被引用的消息详情
param |
String com.netease.nimlib.sdk.qchat.QChatMessageService.getTextCache | ( | long | serverId, |
long | channelId | ||
) |
批量查询消息是否@当前用户
serverId | 服务器Id |
channelId | 频道Id |
InvocationFuture<QChatGetThreadMessagesResult> com.netease.nimlib.sdk.qchat.QChatMessageService.getThreadMessages | ( | @NonNull QChatGetThreadMessagesParam | param | ) |
查询thread聊天的历史
param |
boolean com.netease.nimlib.sdk.qchat.QChatMessageService.insertOrReplaceTextCache | ( | long | serverId, |
long | channelId, | ||
@NonNull String | value | ||
) |
增加一条数据,如果该频道下已经存在数据,则被新数据覆盖。
serverId | 服务器Id |
channelId | 频道Id |
value | 最大长度为10000 |
InvocationFuture<Void> com.netease.nimlib.sdk.qchat.QChatMessageService.markMessageRead | ( | @NonNull QChatMarkMessageReadParam | param | ) |
InvocationFuture<Void> com.netease.nimlib.sdk.qchat.QChatMessageService.markSystemNotificationsRead | ( | @NonNull QChatMarkSystemNotificationsReadParam | param | ) |
InvocationFuture<Void> com.netease.nimlib.sdk.qchat.QChatMessageService.removeQuickComment | ( | @NonNull QChatRemoveQuickCommentParam | param | ) |
删除一条快捷评论
param |
InvocationFuture<QChatSendMessageResult> com.netease.nimlib.sdk.qchat.QChatMessageService.replyMessage | ( | @NonNull QChatReplyMessageParam | param | ) |
InvocationFuture<QChatSendMessageResult> com.netease.nimlib.sdk.qchat.QChatMessageService.resendMessage | ( | @NonNull QChatResendMessageParam | param | ) |
InvocationFuture<QChatSendSystemNotificationResult> com.netease.nimlib.sdk.qchat.QChatMessageService.resendSystemNotification | ( | @NonNull QChatResendSystemNotificationParam | param | ) |
InvocationFuture<QChatRevokeMessageResult> com.netease.nimlib.sdk.qchat.QChatMessageService.revokeMessage | ( | @NonNull QChatRevokeMessageParam | param | ) |
InvocationFuture<QChatSearchMsgByPageResult> com.netease.nimlib.sdk.qchat.QChatMessageService.searchMsgByPage | ( | @NonNull QChatSearchMsgByPageParam | param | ) |
InvocationFuture<QChatSendMessageResult> com.netease.nimlib.sdk.qchat.QChatMessageService.sendMessage | ( | @NonNull QChatSendMessageParam | param | ) |
InvocationFuture<QChatSendSystemNotificationResult> com.netease.nimlib.sdk.qchat.QChatMessageService.sendSystemNotification | ( | @NonNull QChatSendSystemNotificationParam | param | ) |
InvocationFuture<QChatSendTypingEventResult> com.netease.nimlib.sdk.qchat.QChatMessageService.sendTypingEvent | ( | QChatSendTypingEventParam | param | ) |
发送消息正在输入事件 接收方需要调用订阅指定频道事件订阅正在输入事件后后才能就可以收到指定频道的正在输入事件
param |
InvocationFuture<QChatUpdateMessageResult> com.netease.nimlib.sdk.qchat.QChatMessageService.updateMessage | ( | @NonNull QChatUpdateMessageParam | param | ) |
InvocationFuture<QChatUpdateSystemNotificationResult> com.netease.nimlib.sdk.qchat.QChatMessageService.updateSystemNotification | ( | @NonNull QChatUpdateSystemNotificationParam | param | ) |
更新系统通知,除了更新自定义系统通知外,还允许更新邀请服务器成员、拒绝邀请、申请加入服务器、拒绝申请这几种内置系统通知
param |