LeaveReason

Represents the standardized reasons for a participant leaving a meeting.

Each enum constant carries an integer code and a human-readable message explaining why the participant left.

Leave reasons are delivered via onMeetingLeft.

Code Example:


meeting.addEventListener(object : MeetingEventListener() {
    override fun onMeetingLeft(reason: LeaveReason?) {
        Log.d("Meeting", "Left: ${reason?.message}")
    }
})

See also

MeetingEventListener.onMeetingLeft()

Entries

Link copied to clipboard

The WebSocket connection to the server was lost unexpectedly. Code: 1001.

Link copied to clipboard

The participant was removed from the meeting by another participant. Code: 1002.

Link copied to clipboard

The participant was removed because the viewer mode was changed. Code: 1003.

Link copied to clipboard

The participant was removed because the media relay was stopped. Code: 1004.

Link copied to clipboard

The participant switched to a different meeting room. Code: 1005.

Link copied to clipboard

The meeting was closed by the host or server. Code: 1006.

Link copied to clipboard

The participant disconnected for an unknown reason. Code: 1007.

Link copied to clipboard

All participants were removed from the meeting. Code: 1008.

Link copied to clipboard

The meeting was ended via the REST API. Code: 1009.

Link copied to clipboard

The participant was removed via the REST API. Code: 1010.

Link copied to clipboard

The participant ID joined from another device, so this session was disconnected. Code: 1011.

Link copied to clipboard

The participant explicitly called leave() to exit the meeting. Code: 1101.

Link copied to clipboard

The meeting was left after all WebSocket reconnection attempts were exhausted. Code: 1102.

Link copied to clipboard

The meeting was left due to a failure while joining the room. Code: 1103.

Link copied to clipboard

The meeting was left due to a failure while switching rooms. Code: 1104.

Properties

Link copied to clipboard
val code: Int
The integer code associated with this leave reason.
Link copied to clipboard
The human-readable message describing this leave reason.

Functions

Link copied to clipboard
Finds a LeaveReason that corresponds to the given code.