Skip to content

ApplicationCallEventListener

Adnan Mujagić edited this page Oct 1, 2025 · 9 revisions



onRinging(callRingingEvent)

Description

This callback method is triggered when the call transitions to the ringing state.

Arguments

  • callRingingEvent: CallRingingEvent - Event object representing the ringing state. This event does not include any additional data.

Returns

  • N/A



onEarlyMedia(callEarlyMediaEvent)

Description

This callback method is triggered when early media playback becomes available prior to the call being established.

Arguments

  • callEarlyMediaEvent: CallEarlyMediaEvent - Event object representing early media playback. This event does not include any additional data.

Returns

  • N/A



onEstablished(callEstablishedEvent)

Description

This callback method is triggered when the call is successfully connected.

Arguments

  • callEstablishedEvent: CallEstablishedEvent - Event object representing the established call state. This event does not include any additional data.

Returns

  • N/A



onHangup(callHangupEvent)

Description

This callback method is triggered when the call terminates, either successfully or due to an error.

Arguments

  • callHangupEvent: CallHangupEvent - Event object containing details about the call termination, including error codes.

Returns

  • N/A



onError(errorEvent)

Description

This callback method is triggered when a non-terminating error occurs during the call.

Arguments

  • errorEvent: ErrorEvent - Event object containing details about the error, including error codes.

Returns

  • N/A



onCameraVideoAdded(cameraVideoAddedEvent)

Description

This callback method is triggered when a local camera video stream is added to the call.

Arguments

  • cameraVideoAddedEvent: CameraVideoAddedEvent - Event object representing the local camera RTC video track.

Returns

  • N/A



onCameraVideoUpdated(cameraVideoUpdatedEvent)

Description

This callback method is triggered when the local camera video stream is updated during the call.

Arguments

  • cameraVideoUpdatedEvent: CameraVideoUpdatedEvent - Event object representing the updated local camera video RTC track.

Returns

  • N/A



onCameraVideoRemoved(cameraVideoRemovedEvent)

Description

This callback method is triggered when the local camera video stream is removed during the call.

Arguments

  • cameraVideoRemovedEvent: CameraVideoRemovedEvent - Event object representing the reason for the removal of the camera video.

Returns

  • N/A



onScreenShareAdded(screenShareAddedEvent)

Description

This callback method is triggered when screen sharing is started locally on the call.

Arguments

  • screenShareAddedEvent: ScreenShareAddedEvent - Event object representing the screen share track added to the call.

Returns

  • N/A



onScreenShareRemoved(screenShareRemovedEvent)

Description

This callback method is triggered when screen sharing is stopped locally on the call.

Arguments

  • screenShareRemovedEvent: ScreenShareRemovedEvent - Event object representing the reason for the removal of the screen share.

Returns

  • N/A



onConferenceJoined(conferenceJoinedEvent)

Description

This callback method is triggered when the call is added to the conference.

Arguments

  • conferenceJoinedEvent: ConferenceJoinedEvent - Event object representing the conference, including the conference ID, name, participants, and the recording type.

Returns

  • N/A



onConferenceLeft(conferenceLeftEvent)

Description

This callback method is triggered when the call is removed from the conference.

Arguments

  • conferenceLeftEvent: ConferenceLeftEvent - Event object containing details about how the conference was left, including any error codes.

Returns

  • N/A



onParticipantJoining(participantJoiningEvent)

Description

This callback method is triggered when a participant attempts to join the conference.

Arguments

  • participantJoiningEvent: ParticipantJoiningEvent - Event object representing the participant attempting to join the conference, including participant details.

Returns

  • N/A



onParticipantJoined(participantJoinedEvent)

Description

This callback method is triggered when a participant successfully joins the conference.

Arguments

  • participantJoinedEvent: ParticipantJoinedEvent - Event object representing the participant who joined the conference, including participant details.

Returns

  • N/A



onParticipantLeft(participantLeftEvent)

Description

This callback method is triggered when a participant leaves the conference.

Arguments

  • participantLeftEvent: ParticipantLeftEvent - Event object representing the participant who left the conference, including participant details.

Returns

  • N/A



onParticipantCameraVideoAdded(participantCameraVideoAddedEvent)

Description

This callback method is triggered when a participant's camera video is added to the conference or dialog.

Arguments

  • participantCameraVideoAddedEvent: ParticipantCameraVideoAddedEvent - Event object representing the participant who added camera video track, along with said track.

Returns

  • N/A



onParticipantCameraVideoRemoved(participantCameraVideoRemovedEvent)

Description

This callback method is triggered when a participant's camera video is removed from the conference or dialog.

Arguments

Returns

  • N/A



onParticipantScreenShareAdded(participantScreenShareAddedEvent)

Description

This callback method is triggered when a participant starts sharing their screen during the conference or dialog.

Arguments

  • participantScreenShareAddedEvent: ParticipantScreenShareAddedEvent - Event object representing the participant who added screen share track, along with said track.

Returns

  • N/A



onParticipantScreenShareRemoved(participantScreenShareRemovedEvent)

Description

This callback method is triggered when a participant stops sharing their screen during the conference or dialog.

Arguments

Returns

  • N/A



onParticipantMuted(participantMutedEvent)

Description

This callback method is triggered when a participant mutes themselves during the conference or dialog.

Arguments

  • participantMutedEvent: ParticipantMutedEvent - Event object representing the participant who muted themselves.

Returns

  • N/A



onParticipantUnmuted(participantUnmutedEvent)

Description

This callback method is triggered when a participant unmutes themselves during the conference or dialog.

Arguments

  • participantUnmutedEvent: ParticipantUnmutedEvent - Event object representing the participant who unmuted themselves.

Returns

  • N/A



onParticipantDeaf(participantDeafEvent)

Description

This callback method is triggered when a participant has been deafened in the conference.

Arguments

  • participantDeafEvent: ParticipantDeafEvent - Event object representing the participant who was deafened.

Returns

  • N/A



onParticipantUndeaf(participantUndeafEvent)

Description

This callback method is triggered when a participant has been undeafened in the conference.

Arguments

  • participantUndeafEvent: ParticipantUndeafEvent - Event object representing the participant who was undeafened.

Returns

  • N/A



onParticipantBlinded(participantBlindedEvent)

Description

This callback method is triggered when a participant has been blinded in the conference.

Arguments

Returns

  • N/A



onParticipantUnblinded(participantUnblindedEvent)

Description

This callback method is triggered when a participant has been unblinded in the conference.

Arguments

Returns

  • N/A



onParticipantStartedTalking(participantStartedTalkingEvent)

Description

This callback method is triggered when a participant starts talking during the conference.

Arguments

Returns

  • N/A



onParticipantStoppedTalking(participantStoppedTalkingEvent)

Description

This callback method is triggered when a participant stops talking during the conference.

Arguments

Returns

  • N/A



onDialogJoined(dialogJoinedEvent)

Description

This callback method is triggered when the call is added to the dialog.

Arguments

  • dialogJoinedEvent: DialogJoinedEvent - Event object representing the dialog, including the dialog ID, remote participant, and the recording type.

Returns

  • N/A



onDialogLeft(dialogLeftEvent)

Description

This callback method is triggered when the call is removed from the dialog.

Arguments

  • dialogLeftEvent: DialogLeftEvent - Event object containing details about how the dialog was left, including any error codes.

Returns

  • N/A



onReconnecting(reconnectingEvent)

Description

This callback method is triggered when the call initiates the reconnecting process.

Arguments

  • reconnectingEvent: ReconnectingEvent - Event object representing the initiation of the call's reconnecting process. This event does not contain any additional data.

Returns

  • N/A



onReconnected(reconnectedEvent)

Description

This callback method is triggered when the call successfully reconnects.

Arguments

  • reconnectedEvent: ReconnectedEvent - Event object representing the successful reconnection of the call. This event does not contain any additional data.

Returns

  • N/A



onParticipantDisconnected(participantDisconnectedEvent)

Description

This callback method is triggered when a participant is disconnected from the conference or dialog.

Arguments

  • participantDisconnectedEvent: ParticipantDisconnectedEvent - Event object representing the participant who was disconnected from the conference or dialog.

Returns

  • N/A



onParticipantReconnected(participantReconnectedEvent)

Description

This callback method is triggered when a participant is reconnected to the conference or dialog.

Arguments

  • participantReconnectedEvent: ParticipantReconnectedEvent - Event object representing the participant who has been reconnected to the conference or dialog.

Returns

  • N/A



onCallRecordingStarted(callRecordingStartedEvent)

Description

This callback method is triggered when the call recording starts.

Arguments

  • callRecordingStartedEvent: CallRecordingStartedEvent - Event object containing details about the recording type when call recording is started.

Returns

  • N/A



onCallRecordingStopped(callRecordingStoppedEvent)

Description

This callback method is triggered when the call recording stops.

Arguments

  • callRecordingStoppedEvent: CallRecordingStoppedEvent - Event object indicating that the call recording has stopped. This event does not contain any additional data.

Returns

  • N/A



onConferenceRecordingStarted(conferenceRecordingStartedEvent)

Description

This callback method is triggered when the conference recording starts.

Arguments

  • conferenceRecordingStartedEvent: ConferenceRecordingStartedEvent - Event object containing details about the recording type when conference recording is started.

Returns

  • N/A



onConferenceRecordingStopped(conferenceRecordingStoppedEvent)

Description

This callback method is triggered when the conference recording stops.

Arguments

  • conferenceRecordingStoppedEvent: ConferenceRecordingStoppedEvent - Event object indicating that the conference recording has stopped. This event does not contain any additional data.

Returns

  • N/A



onDialogRecordingStarted(dialogRecordingStartedEvent)

Description

This callback method is triggered when the dialog recording starts.

Arguments

  • dialogRecordingStartedEvent: DialogRecordingStartedEvent - Event object containing details about the recording type when dialog recording is started.

Returns

  • N/A



onDialogRecordingStopped(dialogRecordingStoppedEvent)

Description

This callback method is triggered when the dialog recording stops.

Arguments

  • dialogRecordingStoppedEvent: DialogRecordingStoppedEvent - Event object indicating that the dialog recording has stopped. This event does not contain any additional data.

Returns

  • N/A



onRoleChanged(roleChangedEvent)

Description

This callback method is triggered when the role of local participant has been changed.

Arguments

  • roleChangedEvent: RoleChangedEvent - Event object representing the new role assigned to the local participant.

Returns

  • N/A



onParticipantRoleChanged(participantRoleChangedEvent)

Description

This callback method is triggered when another participant's role has been changed.

Arguments

Returns

  • N/A



onStartedTalking(startedTalkingEvent)

Description

This callback method is triggered when the local participant starts talking.

Arguments

  • startedTalkingEvent: StartedTalkingEvent - Event object representing the start of local participant's speech. This event does not include any additional data.

Returns

  • N/A



onStoppedTalking(stoppedTalkingEvent)

Description

This callback method is triggered when the local participant stops talking.

Arguments

  • stoppedTalkingEvent: StoppedTalkingEvent - Event object representing the end of local participant's speech. This event does not include any additional data.

Returns

  • N/A

Tutorials

Migration guides

Reference documentation

Clone this wiki locally