MeetingEventListener

abstract class MeetingEventListener

Abstract listener class for receiving meeting-level events.

Override any of the callback methods in this class to handle specific meeting events. Register the listener on a Meeting instance using addEventListener.

All callbacks are invoked on the main (UI) thread.

Code Example:


meeting.addEventListener(object : MeetingEventListener() {
    override fun onMeetingJoined() {
        Log.d("Meeting", "Successfully joined the meeting")
    }

    override fun onParticipantJoined(participant: Participant) {
        Log.d("Meeting", "${participant.displayName} joined")
    }
})

See also

Meeting.removeEventListener()

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Called when a participant requests to enter a meeting that requires entry permission.
Link copied to clipboard
fun onEntryResponded(id: String, decision: String)
Called when a response is given to an entry request.
Link copied to clipboard
fun onError(error: JSONObject)
Called when an error occurs during the meeting.
Link copied to clipboard
Called when an external phone call ends on the device.
Link copied to clipboard
Called when an external phone call is ringing on the device.
Link copied to clipboard
Called when an external phone call starts on the device.
Link copied to clipboard
Called when HLS streaming has started successfully.
Link copied to clipboard
Called when the HLS streaming state changes.
Link copied to clipboard
Called when HLS streaming has stopped.
Link copied to clipboard
Called when livestreaming has started successfully.
Link copied to clipboard
fun onLivestreamStateChanged(livestreamState: String)
Called when the livestream state changes.
Link copied to clipboard
Called when livestreaming has stopped.
Link copied to clipboard
Called when the main participant changes.
Link copied to clipboard
fun onMediaRelayError(meetingId: String, reason: String)
Called when a media relay error occurs.
Link copied to clipboard
fun onMediaRelayRequestReceived(participantId: String, liveStreamId: String, displayName: String, listener: RelayRequestListener)
Called when a media relay request is received from another meeting.
Link copied to clipboard
fun onMediaRelayRequestResponse(decidedBy: String, decision: String)
Called when a response is received for a media relay request that was sent.
Link copied to clipboard
fun onMediaRelayStarted(meetingId: String)
Called when media relay has started with another meeting.
Link copied to clipboard
fun onMediaRelayStopped(meetingId: String, reason: String)
Called when media relay has stopped.
Link copied to clipboard
Called when the local participant has successfully joined the meeting.
fun onMeetingJoined(switchRoomId: String)
Called when the local participant has successfully joined a meeting after a room switch.
Link copied to clipboard
Called when the local participant has left the meeting.
Called when the local participant has left the meeting, with a reason.
Link copied to clipboard
Called when the meeting connection state changes.
Link copied to clipboard
fun onMicRequested(participantId: String, listener: MicRequestListener)
Called when a remote participant requests the local participant to enable their microphone.
Link copied to clipboard
Called when a new remote participant joins the meeting.
Link copied to clipboard
fun onParticipantLeft(participant: Participant)
Called when a remote participant leaves the meeting.
fun onParticipantLeft(participant: Participant, reason: LeaveReason)
Called when a remote participant leaves the meeting, with a reason.
Link copied to clipboard
Called when a participant's mode changes.
Link copied to clipboard
Called when all streams of a specific kind have been paused.
Link copied to clipboard
fun onPinStateChanged(pinStateData: JSONObject)
Called when a participant's pin state changes.
Link copied to clipboard
fun onPresenterChanged(participantId: String)
Called when the active presenter changes.
Link copied to clipboard
Called when cloud recording has started successfully.
Link copied to clipboard
fun onRecordingStateChanged(recordingState: String)
Called when the cloud recording state changes.
Link copied to clipboard
Called when cloud recording has stopped.
Link copied to clipboard
Called when all streams of a specific kind have been resumed.
Link copied to clipboard
fun onSpeakerChanged(participantId: String)
Called when the active speaker changes.
Link copied to clipboard
Called when the transcription state changes.
Link copied to clipboard
Called when a new transcription text segment is received.
Link copied to clipboard
fun onWebcamRequested(participantId: String, listener: WebcamRequestListener)
Called when a remote participant requests the local participant to enable their webcam.
Link copied to clipboard
Called when whiteboard sharing has started.
Link copied to clipboard
Called when whiteboard sharing has stopped.