NERoomContext class Null safety

当前房间的上下文

Mixed in types

Constructors

NERoomContext()

Properties

chatController NERoomChatController
获取聊天控制器
read-only
hashCode int
The hash code for this object.
read-only, inherited
isRoomLocked bool
查询房间当前锁定状态
read-only
liveController NERoomLiveController
获取直播控制器
read-only
localMember NERoomMember
本端成员
read-only
password String?
房间密码
read-only
remainingSeconds double?
查询房间当前剩余时间
read-only
remoteMembers List<NERoomMember>
远端成员(不包括本端)
read-only
roomName String
房间成员
read-only
roomProperties Map<String, String>
获取当前房间属性
read-only
roomUuid String
房间唯一标识
read-only
rtcController NERoomRtcController
获取rtc控制器
read-only
rtcStartTime int
房间 rtc 开始时间, 单位ms
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sipCid String?
查询房间当前锁定状态
read-only
whiteboardController NERoomWhiteboardController
获取白板控制器
read-only

Methods

addAttachment(String name, dynamic attachment) → void
inherited
addEventCallback(NERoomEventCallback callback) → void
添加房间事件监听
changeMemberRole(String userUuid, String role) Future<VoidResult>
修改成员角色
changeMyName(String name) Future<VoidResult>
修改昵称
clearAttachments() → void
inherited
deleteMemberProperty(String userUuid, String key) Future<VoidResult>
删除房间成员属性
deleteRoomProperty(String key) Future<VoidResult>
删除房间属性
endRoom() Future<VoidResult>
关闭房间
getAttachment(String name) → dynamic
inherited
getMember(String? uuid) NERoomMember?
通过 uuid 获取成员对象
handOverMyRole(String userUuid) Future<VoidResult>
将自身当前的角色转移给userUuid对应的用户,自身会恢复到默认的房间角色。 只有授权角色才能执行该操作。
kickMemberOut(String userUuid) Future<VoidResult>
移除成员 userUuid 用户id
leaveRoom() Future<VoidResult>
离开房间
lockRoom() Future<VoidResult>
锁定房间。锁定后成员无法加入
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
removeAttachment(String name) → void
inherited
removeEventCallback(NERoomEventCallback callback) → void
移除房间事件监听
toString() String
A string representation of this object.
inherited
unlockRoom() Future<VoidResult>
解除锁定房间。解除锁定后成员可以加入该房间
updateMemberProperty(String userUuid, String key, String value) Future<VoidResult>
更新房间成员属性
updateRoomProperty(String key, String value, {String? associatedUuid}) Future<VoidResult>
更新房间属性

Operators

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