AgoraEduGroupHandler
The AgoraEduGroupHandler class contains event callbacks related to sub-room management.
onGroupInfoUpdated
Occurs when the grouping information updates.
void onGroupInfoUpdated(AgoraEduContextGroupInfo groupInfo)
Parameter
- groupInfo
- The object of the grouping information: AgoraEduContextGroupInfo.
onSubRoomListAdded
Indicates that sub-rooms are created.
void onSubRoomListAdded(Array<AgoraEduContextSubRoomInfo> subRoomList)
Parameter
- subRoomList
- The list of sub-room information: AgoraEduContextSubRoomInfo.
onSubRoomListRemoved
Indicates that sub-rooms are removed.
void onSubRoomListRemoved(Array<AgoraEduContextSubRoomInfo> subRoomList)
Parameter
- subRoomList
- The list of sub-room information: AgoraEduContextSubRoomInfo.
onSubRoomListUpdated
Occurs when the information of sub-rooms updates.
void onSubRoomListUpdated(Array<AgoraEduContextSubRoomInfo> subRoomList)
Parameter
- subRoomList
- The list of sub-room information: AgoraEduContextSubRoomInfo.
onUserListInvitedToSubRoom
Occurs when the user receives an invitation to join a sub-room.
void onUserListInvitedToSubRoom(Array<String> userList, String subRoomUuid, AgoraEduContextUserInfo operator)
Parameter
- userList
- A list of user IDs.
- subRoomUuid
- The sub-room ID.
- operator
- The operator, which can be empty.
onUserListRejectedToSubRoom
Occurs when users reject the invitation to join a sub-room.
void onUserListRejectedToSubRoom(Array<String> userList, String subRoomUuid, AgoraEduContextUserInfo operator)
Parameter
- userList
- A list of user IDs.
- subRoomUuid
- The sub-room ID.
- operator
- The operator, which can be empty.
onUserListAddedToSubRoom
Occurs when users are added to a sub-room.
void onUserListAddedToSubRoom(Array<String> userList, String subRoomUuid, AgoraEduContextUserInfo operator)
Parameter
- userList
- A list of user IDs.
- subRoomUuid
- The sub-room ID.
- operator
- The operator, which can be empty.
onUserMovedToSubRoom
Occurs when a user is moved from one sub-room to another.
void onUserMovedToSubRoom(String userUuid, String fromSubRoomUuid, String toSubRoomUuid, AgoraEduContextUserInfo operator)
Parameter
- userList
- A list of user IDs.
- fromSubRoomUuid
- The source sub-room ID.
- toSubRoomUuid
- The target sub-room ID.
- operator
- The operator, which can be empty.
onUserListRemovedFromSubRoom
Occurs when users are removed from a sub-room.
void onUserListRemovedFromSubRoom(Array<AgoraEduContextSubRoomRemovedUserEvent> userList, String subRoomUuid)
Parameter
- userList
- A list of user IDs.
- subRoomUuid
- The sub-room ID.