Suggestions

close search

StringeeCall2.StringeeCallListener

public interface StringeeCallListener



Monitors the call states and medias.



Summary


Public Constructors
StringeeCallListener()

Creates a new StringeeCallListener instance.

Public methods
void onSignalingStateChange(StringeeCall2 stringeeCall2, StringeeCall2.SignalingState signalingState, String reason, int sipCode, String sipReason)

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

void onError(StringeeCall2 stringeeCall2, int code, String description)

Invoked when fails to make a call.

void onHandledOnAnotherDevice(StringeeCall2 stringeeCall2, StringeeCall2.SignalingState signalingState, String description)

Invoked when the call is handled on another device.

void onMediaStateChange(StringeeCall2 stringeeCall2, StringeeCall2.MediaState mediaState)

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

void onLocalStream(StringeeCall2 stringeeCall2)

Invoked when the local media is available to be rendered.

void onRemoteStream(StringeeCall2 stringeeCall2)

Invoked when the remote media is available to be rendered.

void onCallInfo(StringeeCall2 stringeeCall2, JSONObject callInfo)

Invoked when receives data from other clients.


Public constructors


StringeeCallListener

StringeeCallListener()

Creates a new StringeeCallListener instance.



Public methods


onSignalingStateChange

void onSignalingStateChange(StringeeCall2 stringeeCall2, StringeeCall2.SignalingState signalingState, String reason, int sipCode, String sipReason)

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

Parameters
stringeeCall2

A StringeeCall2 instance.

signalingState

The call's state values defined in the StringeeCall2.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(StringeeCall2 stringeeCall2, int code, String description)

Invoked when fails to make a call.

Parameters
stringeeCall2

A StringeeCall2 instance.

code

The code of the error.

description

The description of the error.



onHandledOnAnotherDevice

void onHandledOnAnotherDevice(StringeeCall2 stringeeCall2, StringeeCall2.SignalingState signalingState, String description)

Invoked when the call is handled on another device.

Parameters
stringeeCall2

A StringeeCall2 instance.

signalingState

The state of the call on another device.

description

The description of the call state.



onMediaStateChange

void onMediaStateChange(StringeeCall2 stringeeCall2, StringeeCall2.MediaState mediaState)

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

Parameters
stringeeCall2

A StringeeCall2 instance.

mediaState

The call media state defined in the StringeeCall2.MediaState enum.



onLocalStream

void onLocalStream(StringeeCall2 stringeeCall2)

Invoked when the local media is available to be rendered.

Parameters
stringeeCall2

A StringeeCall2 instance.



onRemoteStream

void onRemoteStream(StringeeCall2 stringeeCall2)

Invoked when the remote media is available to be rendered.

Parameters
stringeeCall2

A StringeeCall2 instance.



onCallInfo

void onCallInfo(StringeeCall2 stringeeCall2, JSONObject callInfo)

Invoked when receives data from other clients.

Parameters
stringeeCall2

A StringeeCall2 instance.

callInfo

Data received in JSON format.