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