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
-
清除设置的当前聊天账号信息
-
clearSessionUnreadCount(String account, NIMSessionType sessionType)
→ dynamic
-
清除当前会话的未读数
-
collectMessage(NIMMessage message)
→ Future<NIMResult<NIMCollectInfo>>
-
收藏消息
-
deleteMessage(NIMMessage anchor)
→ Future<void>
-
删除消息
-
downloadAttachment({required NIMMessage message, required bool thumb})
→ Future<NIMResult<void>>
-
下载消息附件
-
fetchHistoryMessage(NIMMessage anchor, int toTime, int limit, QueryDirection direction)
→ Future<NIMResult<List<ChatMessage>>>
-
查询历史消息,从远端查询
-
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)
→ Future<NIMResult<List<ChatMessage>>>
-
获取历史消息
-
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>>
-
撤回消息
-
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>>
-
发送消息
-
setChattingAccount(String account, NIMSessionType sessionType)
→ dynamic
-
设置当前聊天的账号
-
setNotify(String accId, bool notify)
→ Future<bool>
-
设置账号的消息提醒状态
-
updateRoamMsgTimestamps(NIMMessage newTag)
→ void
-
更新漫游消息时间戳