NERoomContext

interface NERoomContext

房间上下文

Functions

addRoomListener
Link copied to clipboard
abstract fun addRoomListener(listener: NERoomListener)
添加房间事件监听
changeMemberRole
Link copied to clipboard
abstract fun changeMemberRole(userUuid: String, role: String, callback: NECallback<Unit>)
修改成员角色,自己的角色不会发生变化。 只有授权角色才能执行该操作。
changeMyName
Link copied to clipboard
abstract fun changeMyName(name: String, callback: NECallback<Unit>)
修改昵称
deleteMemberProperty
Link copied to clipboard
abstract fun deleteMemberProperty(userUuid: String, key: String, callback: NECallback<Unit>)
删除成员属性
deleteRoomProperty
Link copied to clipboard
abstract fun deleteRoomProperty(key: String, callback: NECallback<Unit>)
删除房间属性
endRoom
Link copied to clipboard
abstract fun endRoom(callback: NECallback<Unit>)
关闭房间
getMember
Link copied to clipboard
abstract fun getMember(uuid: String): NERoomMember?
通过 uuid 获取成员对象
handOverMyRole
Link copied to clipboard
abstract fun handOverMyRole(userUuid: String, callback: NECallback<Unit>)
将自身当前的角色转移给userUuid对应的用户,自身会恢复到默认的房间角色。 只有授权角色才能执行该操作。
kickMemberOut
Link copied to clipboard
abstract fun kickMemberOut(userUuid: String, callback: NECallback<Unit>)
移除成员
leaveRoom
Link copied to clipboard
abstract fun leaveRoom(callback: NECallback<Unit>)
离开房间
lockRoom
Link copied to clipboard
abstract fun lockRoom(callback: NECallback<Unit>)
锁定房间。锁定后成员无法加入
removeRoomListener
Link copied to clipboard
abstract fun removeRoomListener(listener: NERoomListener)
移除房间监听
unlockRoom
Link copied to clipboard
abstract fun unlockRoom(callback: NECallback<Unit>)
解除锁定房间。解除锁定后成员可以加入该房间
updateMemberProperty
Link copied to clipboard
abstract fun updateMemberProperty(userUuid: String, key: String, value: String, callback: NECallback<Unit>)
更新成员属性
updateRoomProperty
Link copied to clipboard
abstract fun updateRoomProperty(key: String, value: String, associatedUserUuid: String? = null, callback: NECallback<Unit>)
更新房间属性

Properties

chatController
Link copied to clipboard
abstract val chatController: NERoomChatController
聊天室控制器
isRoomLocked
Link copied to clipboard
abstract val isRoomLocked: Boolean
查询房间当前锁定状态
liveController
Link copied to clipboard
abstract val liveController: NERoomLiveController
直播控制器
localMember
Link copied to clipboard
abstract val localMember: NERoomMember
本端信息
password
Link copied to clipboard
abstract val password: String?
房间密码
remoteMembers
Link copied to clipboard
abstract val remoteMembers: List<NERoomMember>
远端成员(不包括本端)
roomName
Link copied to clipboard
abstract val roomName: String
房间名称
roomProperties
Link copied to clipboard
abstract val roomProperties: Map<String, String>
获取房间当前时间所有属性
roomUuid
Link copied to clipboard
abstract val roomUuid: String
房间id
rtcController
Link copied to clipboard
abstract val rtcController: NERoomRtcController
音视频控制器
rtcStartTime
Link copied to clipboard
abstract val rtcStartTime: Long
房间rtc开始时间, ms
sipCid
Link copied to clipboard
abstract val sipCid: String?
房间SIP号
whiteboardController
Link copied to clipboard
abstract val whiteboardController: NERoomWhiteboardController
白板控制器