onParticipantLeft

fun onParticipantLeft(participant: Participant)

Called when a remote participant leaves the meeting.

Code Example:


override fun onParticipantLeft(participant: Participant) {
    Log.d("Meeting", "${participant.displayName} left")
    // Remove participant's view from the UI
}

Parameters

participant

the Participant that left

See also


fun onParticipantLeft(participant: Participant, reason: LeaveReason)

Called when a remote participant leaves the meeting, with a reason.

Code Example:


override fun onParticipantLeft(participant: Participant, reason: LeaveReason) {
    Log.d("Meeting", "${participant.displayName} left, reason: $reason")
}

Parameters

participant

the Participant that left

reason

the LeaveReason indicating why the participant left

See also