NERoomChatController class abstract

Inheritance
Annotations
  • @HawkEntryPoint()

Constructors

NERoomChatController()

Properties

hashCode int
The hash code for this object.
no setterinherited
isSupported bool
功能是否支持
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAttachment(Object key, dynamic attachment) → void
inherited
cancelDownloadAttachment(String messageUuid) Future<VoidResult>
取消下载文件消息附件。
clearAttachments() → void
inherited
downloadAttachment(String messageUuid) Future<VoidResult>
下载文件消息附件。
ensureAttachment<T>(Object key) → T
inherited
fetchChatroomHistoryMessages(NEChatroomHistoryMessageSearchOption option) Future<NEResult<List<NERoomChatMessage>>>
获取聊天室历史消息 option 查询聊天室历史消息选项
fetchChatroomMembers(NEChatroomMemberQueryType queryType, int limit, String? lastMemberAccount) Future<NEResult<List<NEChatroomMember>>>
获取聊天室成员 queryType 成员查询类型 limit 人数限制
getAttachment<T>(Object key) → T?
inherited
joinChatroom({NEChatroomType chatroomType = NEChatroomType.common}) Future<VoidResult>
加入聊天室
leaveChatroom({NEChatroomType chatroomType = NEChatroomType.common}) Future<VoidResult>
离开聊天室
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recallChatroomMessage(String messageUuid, int messageTime, {NEChatroomType chatroomType = NEChatroomType.common}) Future<VoidResult>
撤回聊天室消息 messageUuid 消息唯一ID messageTime 消息时间戳 fromAccountId 消息发送者ID operatorAccountId 操作者ID
removeAttachment(Object key) → void
inherited
sendBroadcastTextMessage(String message, {NEChatroomType chatroomType = NEChatroomType.common}) Future<NEResult<NERoomChatMessage>>
发送广播消息 message 文本消息
sendDirectTextMessage(String userUuid, String message, {NEChatroomType chatroomType = NEChatroomType.common}) Future<NEResult<NERoomChatMessage>>
发送定向消息 userUuid 对方用户id message 文本消息
sendFileMessage(String messageUuid, String filePath, List<String>? userUuids, {NEChatroomType chatroomType = NEChatroomType.common}) Future<NEResult<NERoomChatMessage>>
发送文件消息
sendGroupTextMessage(List<String> userUuids, String message, {NEChatroomType chatroomType = NEChatroomType.common}) Future<NEResult<NERoomChatMessage>>
给多人发送消息 userUuids 用户id列表 message 文本消息
sendImageMessage(String messageUuid, String imagePath, List<String>? userUuids, {NEChatroomType chatroomType = NEChatroomType.common}) Future<NEResult<NERoomChatMessage>>
发送图片消息
toString() String
A string representation of this object.
inherited

Operators

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