V2NIMChatroomClient class

Constructors

V2NIMChatroomClient({required int instanceId})

Properties

extensionProvider ↔ V2NIMChatroomLoginExtensionProvider?
登录扩展信息
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
instanceId int
getter/setter pair
linkProvider ↔ V2NIMChatroomLinkProvider?
链接地址提供者
getter/setter pair
onChatroomEntered Stream<void>
进入聊天室成功
no setter
onChatroomExited Stream<NIMError?>
退出聊天室
no setter
onChatroomKicked Stream<V2NIMChatroomKickedInfo>
自己被踢出聊天室
no setter
onChatroomStatus Stream<V2NIMChatroomStatusInfo>
聊天室状态变更
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenProvider ↔ V2NIMChatroomTokenProvider?
token提供者
getter/setter pair

Methods

addChatroomClientListener() Future<NIMResult<void>>
添加聊天室实例监听器
enter(String roomId, V2NIMChatroomEnterParams enterParams) Future<NIMResult<V2NIMChatroomEnterResult>>
进入聊天室
exit() Future<NIMResult<void>>
退出聊天室
getChatroomInfo() Future<NIMResult<V2NIMChatroomInfo>>
getChatroomInfo
getChatroomQueueService() V2NIMChatroomQueueService
获取聊天室队列服务, 后续相关操作均在服务中实现
getChatroomService() V2NIMChatroomService
获取聊天室服务, 后续相关操作均在服务中实现
getInstanceId() int?
获取V2NIMChatroomClient对象的identityId(唯一标识)
getStorageService() StorageService
获取聊天室存储服务, 后续相关操作均在服务中实现
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeChatroomClientListener() Future<NIMResult<void>>
移除聊天室实例监听器
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

chatroomClientMap Map<int, V2NIMChatroomClient>
getter/setter pair

Static Methods

destroyAll() Future<NIMResult<void>>
销毁当前的所有聊天室实例
destroyInstance(int instanceId) Future<NIMResult<void>>
销毁指定聊天室实例
getInstance(int instanceId) Future<NIMResult<V2NIMChatroomClient?>>
通过identityId(唯一标识)获取之前已经创建的V2NIMChatroomClient
getInstanceList() Future<NIMResult<List<V2NIMChatroomClient>?>>
获取当前已经存在的聊天室实例列表
init(NIMSDKOptions options) Future<NIMResult<void>>
PC初始化
newInstance() Future<NIMResult<V2NIMChatroomClient?>>
构造一个新的聊天室实例
uninit() Future<NIMResult<void>>
PC初始化