Skip to content

CallEventListener

Lejla Solak edited this page Feb 10, 2025 · 4 revisions



onRinging(callRingingEvent)

Description

This callback method is triggered when a call enters 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 a call is successfully established.

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



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



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

Tutorials

Migration guides

Reference documentation

Clone this wiki locally