ChatMessageRepo class
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
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
addMessagePin(NIMMessage message, {String? ext})
→ Future<NIMResult<void>>
-
pin一条消息
-
clearChattingAccount()
→ dynamic
-
清除设置的当前聊天账号信息
-
clearChattingAccountWithId(String sessionId, NIMSessionType sessionType)
→ dynamic
-
清除设置的当前聊天账号信息
@param
sessionId
聊天对象id
@param sessionType
聊天对象类型
-
clearSessionUnreadCount(String account, NIMSessionType sessionType)
→ dynamic
-
清除当前会话的未读数
-
collectMessage(NIMMessage message)
→ Future<NIMResult<NIMCollectInfo>>
-
收藏消息
-
createForwardMessageListFileDetail(List<NIMMessage> messages)
→ Future<NIMResult<String>>
-
-
deleteLocalMessage(NIMMessage anchor)
→ Future<void>
-
删除消息,本地删除
-
deleteLocalMessageList(List<NIMMessage> messages)
→ Future<void>
-
批量删除消息,本地删除
messages
消息列表
-
deleteMessage(NIMMessage anchor)
→ Future<NIMResult<int>>
-
删除消息,远程删除
-
deleteMessageList(List<NIMMessage> messages, {String ext = ''})
→ Future<NIMResult<int>>
-
批量删除消息,远程删除
-
downloadAttachment({required NIMMessage message, required bool thumb})
→ Future<NIMResult<void>>
-
下载消息附件
-
fetchHistoryMessage(NIMMessage anchor, int toTime, int limit, QueryDirection direction)
→ Future<NIMResult<List<ChatMessage>>>
-
查询历史消息,从远端查询
-
fetchPinMessage(String sessionId, NIMSessionType sessionType)
→ Future<NIMResult<List<ChatMessage>>>
-
获取Pin 的消息列表
-
fetchTeamMessageReceiptDetail(NIMMessage message)
→ Future<NIMTeamMessageAckInfo?>
-
(群消息发送方)查询单条群组消息已读、未读账号列表
-
fillUserInfo(List<NIMMessage> list)
→ Future<List<ChatMessage>>
-
为每条消息添加用户信息
-
forwardMessage(NIMMessage message, String sessionId, NIMSessionType sessionType)
→ Future<NIMResult<void>>
-
消息转发
-
getFriendInfo(String userId)
→ Future<NIMResult<NIMFriend>>
-
获取好友信息
-
getHistoryMessage(NIMMessage anchor, QueryDirection direction, int limit, {bool enablePin = true})
→ Future<NIMResult<List<ChatMessage>>>
-
获取历史消息
-
getMessagesDynamically(GetMessagesDynamicallyParam param, {bool enablePin = true, bool addUserInfo = true})
→ Future<NIMResult<MessageDynamicResult>>
-
动态途径获取消息,默认从本地获取,动态能力需要开通功能,并在同步完成后生效
-
getMessagesFromMergedMessage(MergedMessage mergedMsg)
→ Future<NIMResult<List<NIMMessage>>>
-
获取合并转发消息中的消息列表
-
isNeedNotify(String accid)
→ Future<bool>
-
是否打开消息提醒
-
markP2PMessageRead({required String sessionId, required NIMMessage message})
→ Future<NIMResult<void>>
-
设置单聊中消息为已读状态
-
markTeamMessageRead(NIMMessage message)
→ Future<NIMResult<void>>
-
设置群聊中消息为已读状态
-
queryRoamMsgTimestamps(String sessionId, NIMSessionType sessionType)
→ Future<int>
-
查询漫游消息时间戳
-
queryTeam(String teamId)
→ Future<NIMResult<NIMTeam>>
-
请求群组信息
-
removeMessagePin(NIMMessage message, {String? ext})
→ Future<NIMResult<void>>
-
移除pin消息
-
replyMessage({required NIMMessage msg, required NIMMessage replyMsg, required bool resend})
→ Future<NIMResult<void>>
-
回复消息
-
revokeMessage(NIMMessage message)
→ Future<NIMResult<void>>
-
撤回消息
-
saveTipsMessage(String sessionId, NIMSessionType sessionType, String content)
→ void
-
本地保存tip 消息
不计入未读数
-
searchMessage(String keyWord, String sessionId, NIMSessionType sessionType)
→ Future<List<ChatMessage>?>
-
根据关键字搜索消息
-
sendCustomNotification(CustomNotification notification)
→ Future<NIMResult<void>>
-
发送自定义通知
-
sendMessage({required NIMMessage message, bool resend = false})
→ Future<NIMResult<NIMMessage>>
-
发送消息
-
sendTextMessageWithMessageAck({required String sessionId, required NIMSessionType sessionType, required String text})
→ Future<NIMResult<NIMMessage>>
-
发送文本消息
自动设置是否需要已读回执
-
setChattingAccount(String account, NIMSessionType sessionType)
→ dynamic
-
设置当前聊天的账号
-
setNotify(String accId, bool notify)
→ Future<bool>
-
设置账号的消息提醒状态
-
updateRoamMsgTimestamps(NIMMessage newTag)
→ void
-
更新漫游消息时间戳
-
uploadMergedMessageFile(List<NIMMessage> messages)
→ Future<NIMResult<MessageUploadInfo>>
-
合并并上传消息,返回上传后的url和md5