How to leave a flexible classroom?
Updated
In Flexible Classroom, the teacher can click Leave Classroom to temporarily exit the session without changing the room status. To officially end the class, follow these steps:
-
The teacher calls the
leaveClassroommethod to exit the classroom:this.classroomStore.connectionStore.leaveClassroom(LeaveReason.leave);The
ClassStatereflects the following states:ClassState { beforeClass: 0, // Class has not started ongoing: 1, // Class is ongoing afterClass: 2, // Class has ended, but the classroom still exists close: 3 // Classroom is closed } -
To actively end the room, call the room status update interface
RoomStore:updateClassState:// End the room this.classroomStore.roomStore.updateClassState(ClassState.close); -
To end the course without direct interaction, call Flexible Classroom backend RESTful interface Set Classroom Status. Set the class status to one of the following values:
0: Not started1: In progress2: Ended. The class time has elapsed, but users can join and remain during the extended time.3: Closed. The class is closed after the extended time, and all users are removed and cannot rejoin.
