Suggestions

close search

StringeeCallListener

public interface StringeeCall.StringeeCallListener



Monitors the call states and medias.



Summary


Public Constructors
StringeeCallListener()

Creates a new StringeeCallListener instance.

Public methods
void onSignalingStateChange(StringeeCall stringeeCall, SignalingState signalingState, String reason, int sipCode, String sipReason)

Invoked when the call's state changes between: calling, ringing, answered, busy, ended.

void onError(StringeeCall stringeeCall, int code, String description)

Invoked when fails to make a call.

void onHandledOnAnotherDevice(StringeeCall stringeeCall, SignalingState signalingState, String description)

Invoked when the call is handled on another device.

void onMediaStateChange(StringeeCall stringeeCall, MediaState mediaState)

Invoked when the call media state changes between: connected, disconnected.

void onLocalStream(StringeeCall stringeeCall)

Invoked when the local media is available to be rendered.

void onRemoteStream(StringeeCall stringeeCall)

Invoked when the remote media is available to be rendered.

void onCallInfo(StringeeCall stringeeCall, JSONObject callInfo)

Invoked when receives data from other clients.


Public constructors


StringeeCallListener

StringeeCallListener()

Creates a new StringeeCallListener instance.



Public methods


onSignalingStateChange

void onSignalingStateChange(StringeeCall stringeeCall, SignalingState signalingState, String reason, int sipCode, String sipReason)

Invoked when the call's state changes between: calling, ringing, answered, busy, ended.

Parameters
stringeeCall

A StringeeCall instance.

signalingState

The call's state values defined in the SignalingState enum.

reason

The description of the state.

sipCode

The sip code returned when the call is an app-to-phone call.

sipReason

The description of sip code.



onError

void onError(StringeeCall stringeeCall, int code, String description)

Invoked when fails to make a call.

Parameters
stringeeCall

A StringeeCall instance.

code

The code of the error.

description

The description of the error.



onHandledOnAnotherDevice

void onHandledOnAnotherDevice(StringeeCall stringeeCall, SignalingState signalingState, String description)

Invoked when the call is handled on another device.

Parameters
stringeeCall

A StringeeCall instance.

signalingState

The state of the call on another device.

description

The description of the call state.



onMediaStateChange

void onMediaStateChange(StringeeCall stringeeCall, MediaState mediaState)

Invoked when the call media state changes between: connected, disconnected.

Parameters
stringeeCall

A StringeeCall instance.

mediaState

The call media state defined in the MediaState enum.



onLocalStream

void onLocalStream(StringeeCall stringeeCall)

Invoked when the local media is available to be rendered.

Parameters
stringeeCall

A StringeeCall instance.



onRemoteStream

void onRemoteStream(StringeeCall stringeeCall)

Invoked when the remote media is available to be rendered.

Parameters
stringeeCall

A StringeeCall instance.



onCallInfo

void onCallInfo(StringeeCall stringeeCall, JSONObject callInfo)

Invoked when receives data from other clients.

Parameters
stringeeCall

A StringeeCall instance.

callInfo

Data received in JSON format.