CallListener

interface CallListener

Represents a listener of Call events. The methods handle call state changes.

For a complete outgoing call, the listener methods will be called in the following order:

  1. onCallProgressing

  2. onCallAnswered

  3. onCallEstablished

  4. onCallEnded

For a complete incoming call, the listener methods will be called in the following order (after the callback method CallControllerListener.onIncomingCall has been called):

  1. onCallAnswered

  2. onCallEstablished

  3. onCallEnded

Inheritors

Functions

Link copied to clipboard
open fun onCallAnswered(call: Call)

Tells the listener that the callee answered the call. Note that it might take some time after this callback is invoked for media stream to connect. See onCallEstablished for more information.

Link copied to clipboard
abstract fun onCallEnded(call: Call)

Tells the listener that the call has entered the CallState.ENDED state.

Link copied to clipboard
abstract fun onCallEstablished(call: Call)

Tells the listener that the call was answered and media stream is connected. This means both peers should be able to hear and communicate with each other. This callback ideally is invoked shortly after onCallAnswered, however for various reasons (e.g bad network conditions) it might take few seconds to fully establish a connection after the call is answered.

Link copied to clipboard
abstract fun onCallProgressing(call: Call)

Tells the listener that the outgoing call has entered the CallState.PROGRESSING state and a progress tone can be played.