# ConferenceListener

interface ConferenceListener

A listener to receive Conference events.

This interface includes all the callbacks needed to listen to the events associated with one particular Conference and to perform the appropriate actions when any of these events are received.

## Functions

onConferenceStateReceived
Link copied to clipboard
abstract fun onConferenceStateReceived(conference: Conference, state: JanusConference.State)

Performs any actions that could be required depending on the conference state. Is is invoked with the current conference state when the listener is added and also whenever the conference state changes after that.

onInvitationUpdated
Link copied to clipboard
abstract fun onInvitationUpdated(conference: Conference, invitation: Invitation)

Performs any actions that could be required when an invitation is updated. It is invoked whenever an invite or cancel request is processed (in these cases, the state will be Pending or Canceled respectively) and when the invitation result is received (the state will be Accepted or Rejected depending on the response).

onParticipantAdded
Link copied to clipboard
abstract fun onParticipantAdded(conference: Conference, participant: Participant)

Performs any actions that could be required when a new participant is added to the conference.

onParticipantHeld
Link copied to clipboard
abstract fun onParticipantHeld(conference: Conference, participantId: String)

Performs any actions that could be required when the participant specified by participantId held the conference.

onParticipantRemoved
Link copied to clipboard
abstract fun onParticipantRemoved(conference: Conference, participantId: String)

Performs any actions that could be required when the participant specified by participantId is removed from the conference.

onParticipantUnheld
Link copied to clipboard
abstract fun onParticipantUnheld(conference: Conference, participantId: String)

Performs any actions that could be required when the participant specified by participantId unheld the conference.

onTransferReceived
Link copied to clipboard
abstract fun onTransferReceived(conference: Conference, transfer: Transfer)

Performs any action that could be required when there is a new incoming Transfer.