onParticipantLeft

open fun onParticipantLeft(participant: Participant, reason: LeaveReason)

Called when the server reports that a remote participant left. AI agents leave through here too.

Parameters

participant

the participant that left. If this device never saw them, it is a stand-in carrying the right Participant.id and an empty Participant.displayName.

reason

why they left; LeaveReason.UNKNOWN when the server sent no reason.