AgoraEduRoomHandler

The AgoraEduRoomHandler class contains room-related event callbacks.

onRoomJoinedFail

Occurs when the local user fails to join the room.

void onRoomJoinedFail(roomInfo: AgoraEduContextRoomInfo,
                      error: AgoraEduContextError)

Parameter

roomInfo
The room information: AgoraEduContextRoomInfo.
error
The reason why the user fails to join the room: AgoraEduContextError.

onRoomPropertiesUpdated

Occurs when the custom room properties are updated.

void onRoomPropertiesUpdated(Map<String, Any> changedProperties,
                             Map<String, Any> cause,
                             AgoraEduContextUserInfo operator)

Parameter

changedProperties
The updated room properties.
cause
The update reason.
operator
The operator AgoraEduContextUserInfo, which can be empty.

onRoomPropertiesDeleted

Occurs when custom room properties are deleted.

void onRoomPropertiesDeleted(Array<String> keyPaths,
                             Map<String, Any> cause,
                             AgoraEduContextUserInfo operator)

Parameter

keyPaths
The keyPath array of the deleted properties.
cause
The reason for deletion.
operator
The operator AgoraEduContextUserInfo, which can be empty.

onRoomClosed

Occurs when the room is closed.

void onRoomClosed()

When the room is closed, users in the room are kicked out of the room immediately, and other users can no longer join the room.