ChatroomServicePlatform class abstract

Inheritance

Constructors

ChatroomServicePlatform()

Properties

dynamicChatroomTokenProvider NIMChatroomDynamicTokenProvider?
鉴权模式为动态Token或者第三方鉴权的时候需要使用的token提供者
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
independentModeLinkAddressProvider NIMChatroomIndependentModeLinkAddressProvider?
设置聊天室独立模式link地址提供者。 独立模式由于不依赖IM连接,SDK无法自动获取聊天室服务器的地址,需要客户端向SDK提供该地址。 独立模式下需要设置该字段,否则无法进入聊天室
getter/setter pair
onEventNotified Stream<NIMChatroomEvent>
聊天室事件流
no setter
onMessageAttachmentProgressUpdate Stream<NIMAttachmentProgress>
聊天室消息附件上传/下载进度通知,以 NIMMessage.uuid 作为key
no setter
onMessageReceived Stream<List<NIMChatroomMessage>>
接收到聊天室消息
no setter
onMessageStatusChanged Stream<NIMChatroomMessage>
聊天室消息状态变更
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceName String
no setterinherited

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>>
清空聊天室队列
createChatroomMessage(Map<String, dynamic> arguments) Future<NIMResult<NIMChatroomMessage>>
创建聊天室消息
downloadAttachment(NIMChatroomMessage message, [bool thumb = false]) Future<NIMResult<void>>
下载聊天室消息附件
enterChatroom(NIMChatroomEnterRequest request) Future<NIMResult<NIMChatroomEnterResult>>
加入聊天室 request 加入请求
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>>>
获取历史消息,可选择给定时间往前或者往后查询,若方向往前,则结果排序按时间逆序,反之则结果排序按时间顺序。
handleMethodCall(String method, dynamic arguments) Future
inherited
invokeMethod(String method, {Map<String, dynamic>? arguments}) Future<Map<String, dynamic>>
inherited
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 nonexistent method or property is accessed.
inherited
onEvent(String method, dynamic arguments) Future
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, dynamic>? 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

Static Properties

instance ChatroomServicePlatform
getter/setter pair