onRoomLeft

open fun onRoomLeft(reason: LeaveReason)

Called once the session is over, on every exit path: Room.leave, Room.end, being removed by a host, the same participant ID joining from another device, or reconnection giving up.

RoomState.DISCONNECTED always reaches onRoomStateChanged first, so a listener that unregisters itself here still sees it. The camera and microphone are released before this fires, so joining again from inside it is safe.

Parameters

reason

why the session ended; LeaveReason.MANUAL_LEAVE_CALLED for an ordinary Room.leave.