public static interface Call.Listener
Modifier and Type | Method and Description |
---|---|
void |
onConnected(Call call)
The call has connected.
|
void |
onConnectFailure(Call call,
CallException callException)
The call failed to connect.
|
void |
onDisconnected(Call call,
CallException callException)
The call was disconnected.
|
void |
onReconnected(Call call)
The call is reconnected.
|
void |
onReconnecting(Call call,
CallException callException)
The call starts reconnecting.
|
void |
onRinging(Call call)
Emitted once before the
onConnected(Call) callback. |
void onConnectFailure(Call call, CallException callException)
Calls that fail to connect will result in onConnectFailure(Call, CallException)
and always return a CallException
providing more information about what failure occurred.
call
- An object model representing a call that failed to connect.callException
- CallException that describes why the connect failed.void onRinging(Call call)
onConnected(Call)
callback. If
answerOnBridge
is true, this represents the callee being alerted of a call.
The Call.getSid()
is now available.call
- An object model representing a call.void onConnected(Call call)
call
- An object model representing a call.void onReconnecting(Call call, CallException callException)
Call.State.CONNECTED
state.
If the call is in Call.State.CONNECTING
or in Call.State.RINGING
when network
change happened the SDK will continue attempting to connect, but a reconnect event will not be raised.call
- An object model representing a call.callException
- CallException that describes the reconnect reason. This would have one of the two
possible values with error codes 53001 "Signaling connection disconnected" and 53405 "Media connection failed".void onReconnected(Call call)
call
- An object model representing a call.void onDisconnected(Call call, CallException callException)
A call can be disconnected for the following reasons:
If the call ends due to an error the `CallException` is non-null. If the call ends normally `CallException` is null.
call
- An object model representing a call.callException
- CallException that caused the call to disconnect.5.0.2