Interface CallListener
-
- All Implemented Interfaces:
public interface CallListenerRepresents 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:
For a complete incoming call, the listener methods will be called in the following order (after the callback method CallControllerListener.onIncomingCall has been called):
-
-
Method Summary
Modifier and Type Method Description abstract UnitonCallProgressing(Call call)Tells the listener that the outgoing call has entered the CallState.PROGRESSING state and a progress tone can be played. UnitonCallRinging(Call call)Tells the listener that the outgoing call has entered the CallState.RINGING state and the callee received the call. UnitonCallAnswered(Call call)Tells the listener that the callee answered the call. abstract UnitonCallEstablished(Call call)Tells the listener that the call was answered and media stream is connected. abstract UnitonCallEnded(Call call)Tells the listener that the call has entered the CallState.ENDED state. -
-
Method Detail
-
onCallProgressing
abstract Unit onCallProgressing(Call call)
Tells the listener that the outgoing call has entered the CallState.PROGRESSING state and a progress tone can be played.
- Parameters:
call- The outgoing call to the client on the other end.
-
onCallRinging
Unit onCallRinging(Call call)
Tells the listener that the outgoing call has entered the CallState.RINGING state and the callee received the call.
- Parameters:
call- The outgoing call to the client on the other end.
-
onCallAnswered
Unit 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.
- Parameters:
call- The call that was answered.
-
onCallEstablished
abstract Unit 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.
- Parameters:
call- The call that was established.
-
onCallEnded
abstract Unit onCallEnded(Call call)
Tells the listener that the call has entered the CallState.ENDED state.
- Parameters:
call- The call that ended.
-
-
-
-