AgoraEduRoomHandler
AgoraEduRoomHandler 类包含房间相关的事件回调。
onRoomJoinedSuccess
本地成功加入房间回调。
void onRoomJoinedSuccess(roomInfo: AgoraEduContextRoomInfo)
参数
- roomInfo
- 房间信息 AgoraEduContextRoomInfo。
onRoomJoinedFail
本地加入房间失败回调。
void onRoomJoinedFail(roomInfo: AgoraEduContextRoomInfo, error: AgoraEduContextError)
参数
- roomInfo
- 房间信息 AgoraEduContextRoomInfo。
- error
- 错误原因 AgoraEduContextError。
onRoomPropertiesUpdated
自定义房间属性更新回调。
void onRoomPropertiesUpdated(Map<String, Any> changedProperties, Map<String, Any> cause, AgoraEduContextUserInfo operator)
参数
- changedProperties
- 已更新的房间属性。
- cause
- 更新原因。
- operator
- 操作者 AgoraEduContextUserInfo,可为空。
onRoomPropertiesDeleted
自定义房间属性删除回调。
void onRoomPropertiesDeleted(Array<String> keyPaths, Map<String, Any> cause, AgoraEduContextUserInfo operator)
参数
- keyPaths
- 被删除的属性的 keyPath 数组。
- cause
- 删除原因。
- operator
- 操作者 AgoraEduContextUserInfo,可为空。
onRoomClosed
房间关闭回调。
void onRoomClosed()
房间关闭,房间里的用户会立即被踢出房间,其它用户无法也再加入该房间。
onClassStateUpdated
课堂状态更新回调。
void onClassStateUpdated(AgoraEduContextClassState state)
参数
- state
- 当前的课堂状态 AgoraEduContextClassState。