Skip to navigation

ConferenceListener (interface)

Android SDK v3 API reference
View as Markdown

com.voximplant.android.sdk.calls

Interface that handles conference events.

Methods

onConferenceConnected

fun onConferenceConnected(conference: Conference, headers: Map<String, String>?): Unit

Triggered when conference is connected.

Parameters

ParameterTypeRequirementDescription
conferenceConferenceConference object that invoked the event
headersMap<String, String>?Optional SIP headers received with message

Returns: Unit

onConferenceDisconnected

fun onConferenceDisconnected(conference: Conference, headers: Map<String, String>?, disconnectReason: ConferenceDisconnectReason): Unit

Triggered when the conference is disconnected.

Parameters

ParameterTypeRequirementDescription
conferenceConferenceConference object that invoked the event
headersMap<String, String>?Optional SIP headers received with message
disconnectReasonConferenceDisconnectReason

Returns: Unit

onConferenceFailed

fun onConferenceFailed(conference: Conference, code: Int, description: String?, headers: Map<String, String>?): Unit

Triggered if conference is failed.

Parameters

ParameterTypeRequirementDescription
conferenceConferenceConference object that invoked the event
codeIntStatus code of the conference failure
descriptionString?Status message of the conference failure
headersMap<String, String>?Optional SIP headers received with message

Returns: Unit

onConferenceReconnected

fun onConferenceReconnected(conference: Conference): Unit

Triggered when the connection to the Voximplant Cloud is restored and media stream are active in the call.

Parameters

ParameterTypeRequirementDescription
conferenceConferenceConference object that invoked the event

Returns: Unit

onConferenceReconnecting

fun onConferenceReconnecting(conference: Conference): Unit

Triggered when the connection to the Voximplant Cloud is lost due to a network issues and media streams may be interrupted in the conference.

Once the connection to the Voximplant Cloud is restored and media streams are active, ConferenceListener.onConferenceReconnected event is triggered.

Until ConferenceListener.onConferenceReconnected event is invoked, the following API calls fail with CallError.InvalidCallState error:

  1. Conference.startScreenSharing
  2. Conference.stopScreenSharing
  3. Conference.addVideoStream
  4. Conference.removeVideoStream

Parameters

ParameterTypeRequirementDescription
conferenceConferenceConference object that invoked the event

Returns: Unit

onConferenceStatsReceived

fun onConferenceStatsReceived(conference: Conference, conferenceStats: ConferenceStats): Unit

Triggered periodically with interval configured with CallManagerConfig.statsCollectionInterval with conference statistics.

Parameters

ParameterTypeRequirementDescription
conferenceConferenceConference object that invoked the event
conferenceStatsConferenceStatsConference statistics

Returns: Unit

onEndpointAdded

fun onEndpointAdded(conference: Conference, endpoint: Endpoint): Unit

Triggered when new endpoint is added to the conference. It is recommended to set Endpoint.setEndpointListener for the new endpoint, when this event is triggered.

Parameters

ParameterTypeRequirementDescription
conferenceConferenceConference object that invoked the event
endpointEndpointNew endpoint

Returns: Unit

onEndpointRemoved

fun onEndpointRemoved(conference: Conference, endpoint: Endpoint): Unit

Triggered after endpoint is removed from the conference. Event is not triggered on conference end.

Parameters

ParameterTypeRequirementDescription
conferenceConferenceConference object that invoked the event
endpointEndpointRemoved endpoint

Returns: Unit

onInfoReceived

fun onInfoReceived(conference: Conference, type: String, content: String, headers: Map<String, String>?): Unit

Triggered when an INFO message is received.

Parameters

ParameterTypeRequirementDescription
conferenceConferenceConference object that invoked the event
typeStringMIME type of INFO message
contentStringBody of INFO message
headersMap<String, String>?Optional SIP headers received with message

Returns: Unit

onLocalVoiceActivityChanged

fun onLocalVoiceActivityChanged(conference: Conference, voiceDetected: Boolean): Unit

Triggered when a voice activity is detected from the current participant.

Parameters

ParameterTypeRequirementDescription
conferenceConferenceConference object that invoked the event
voiceDetectedBoolean

Returns: Unit

onMessageReceived

fun onMessageReceived(conference: Conference, text: String): Unit

Triggered when a message is received within the conference.

Parameters

ParameterTypeRequirementDescription
conferenceConferenceConference object that invoked the event
textStringContent of the message

Returns: Unit