ChatroomService class Null safety

Constructors

ChatroomService()
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
onEventNotified Stream<NIMChatroomEvent>
聊天室事件流 [...]
read-only
onMessageAttachmentProgressUpdate Stream<NIMAttachmentProgress>
聊天室消息附件上传/下载进度通知,以 NIMMessage.uuid 作为key
read-only
onMessageReceived Stream<List<NIMChatroomMessage>>
聊天室消息
read-only
onMessageStatusChanged Stream<NIMChatroomMessage>
聊天室消息状态变更
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

batchUpdateChatroomQueue({required String roomId, required List<NIMChatroomQueueEntry> entryList, bool needNotify = true, Map<String, dynamic>? notifyExtension}) Future<NIMResult<List<String>>>
批量更新聊天室队列 [...]
clearChatroomQueue(String roomId) Future<NIMResult<void>>
清空聊天室队列
downloadAttachment(NIMChatroomMessage message, [bool thumb = false]) Future<NIMResult<void>>
下载聊天室消息附件
enterChatroom(NIMChatRoomEnterRequest request) Future<NIMResult<NIMChatroomEnterResult>>
加入聊天室
exitChatroom(String roomId) Future<NIMResult<void>>
退出聊天室
fetchChatroomInfo(String roomId) Future<NIMResult<NIMChatroomInfo>>
获取当前聊天室信息
fetchChatroomMembers({required String roomId, required NIMChatroomMemberQueryType queryType, required int limit, String? lastMemberAccount}) Future<NIMResult<List<NIMChatroomMember>>>
获取当前聊天室成员 [...]
fetchChatroomMembersByAccount({required String roomId, required List<String> accountList}) Future<NIMResult<List<NIMChatroomMember>>>
获取当前聊天室成员 [...]
fetchChatroomQueue(String roomId) Future<NIMResult<List<NIMChatroomQueueEntry>>>
获取聊天室队列 [...]
fetchMessageHistory({required String roomId, required int startTime, required int limit, required QueryDirection direction, List<NIMMessageType>? messageTypeList}) Future<NIMResult<List<NIMChatroomMessage>>>
获取历史消息,可选择给定时间往前或者往后查询,若方向往前,则结果排序按时间逆序,反之则结果排序按时间顺序。 [...]
kickChatroomMember(NIMChatroomMemberOptions options) Future<NIMResult<void>>
踢掉聊天室特定成员 [...]
markChatroomMemberBeManager({required bool isAdd, required NIMChatroomMemberOptions options}) Future<NIMResult<NIMChatroomMember>>
设置/取消设置聊天室管理员 [...]
markChatroomMemberBeNormal({required bool isAdd, required NIMChatroomMemberOptions options}) Future<NIMResult<NIMChatroomMember>>
设置/取消设置聊天室普通成员 [...]
markChatroomMemberInBlackList({required bool isAdd, required NIMChatroomMemberOptions options}) Future<NIMResult<NIMChatroomMember>>
添加/移出聊天室黑名单 [...]
markChatroomMemberMuted({required bool isAdd, required NIMChatroomMemberOptions options}) Future<NIMResult<NIMChatroomMember>>
添加/解除禁言聊天室成员 [...]
markChatroomMemberTempMuted({required int duration, required NIMChatroomMemberOptions options, bool needNotify = false}) Future<NIMResult<void>>
添加/解除临时禁言聊天室成员 [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pollChatroomQueueEntry(String roomId, String? key) Future<NIMResult<NIMChatroomQueueEntry>>
从列表中删除某个元素 [...]
sendChatroomMessage(NIMChatroomMessage message, [bool resend = false]) Future<NIMResult<NIMChatroomMessage>>
发送聊天室消息 [...]
toString() String
A string representation of this object. [...]
inherited
updateChatroomInfo({required String roomId, required NIMChatroomUpdateRequest request, bool needNotify = true, Map<String, Object>? notifyExtension}) Future<NIMResult<void>>
更新聊天室信息
updateChatroomMyMemberInfo({required String roomId, required NIMChatroomUpdateMyMemberInfoRequest request, bool needNotify = true, Map<String, dynamic>? notifyExtension}) Future<NIMResult<void>>
更新聊天室内的自身信息 roomId 聊天室id request 可更新的本人角色信息 needNotify 是否通知 notifyExtension 更新聊天室信息扩展字段,这个字段会放到更新聊天室信息通知的扩展字段中
updateChatroomQueueEntry({required String roomId, required NIMChatroomQueueEntry entry, bool isTransient = false}) Future<NIMResult<void>>
更新聊天室队列 [...]

Operators

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