public interface CallListener
Modifier and Type | Method and Description |
---|---|
void |
onAckProcessing(Call call,
Headers ack,
boolean isReceived)
Callback for notifying the processing SIP ACK messages.
|
void |
onAudioDeviceChanged(Call call,
AudioDevice audioDevice)
Callback to notify that the audio device has been changed.
|
void |
onCameraNotWorking(Call call,
java.lang.String cameraName)
Callback to notify that the camera is not working and has been changed to "No
Webcam". |
void |
onDtmfReceived(Call call,
int dtmf)
Callback for being notified of received DTMFs.
|
void |
onEncryptionChanged(Call call,
boolean on,
java.lang.String authenticationToken)
Call encryption changed callback.
|
void |
onInfoMessageReceived(Call call,
InfoMessage message)
Callback for receiving info messages.
|
void |
onNextVideoFrameDecoded(Call call)
Callback to notify a next video frame has been decoded.
|
void |
onRemoteRecording(Call call,
boolean recording)
Callback to notify that the call is being recorded by the remote.
|
void |
onSnapshotTaken(Call call,
java.lang.String filePath)
Callback for notifying a snapshot taken.
|
void |
onStateChanged(Call call,
Call.State state,
java.lang.String message)
Call state notification callback.
|
void |
onStatsUpdated(Call call,
CallStats stats)
Callback for receiving quality statistics for calls.
|
void |
onTmmbrReceived(Call call,
int streamIndex,
int tmmbr)
Callback for notifying a received TMMBR.
|
void |
onTransferStateChanged(Call call,
Call.State state)
Callback for notifying progresses of transfers.
|
void onCameraNotWorking(@NonNull Call call, @NonNull java.lang.String cameraName)
call
- LinphoneCall for which the next video frame has been decoded cameraName
- the name of the non-working camera void onDtmfReceived(@NonNull Call call, int dtmf)
call
- LinphoneCall object that received the dtmf dtmf
- The ascii code of the dtmf void onSnapshotTaken(@NonNull Call call, @NonNull java.lang.String filePath)
call
- LinphoneCall for which the snapshot was taken filePath
- the name of the saved file void onInfoMessageReceived(@NonNull Call call, @NonNull InfoMessage message)
call
- LinphoneCall whose info message belongs to. message
- LinphoneInfoMessage object. void onStateChanged(@NonNull Call call, Call.State state, @NonNull java.lang.String message)
call
- LinphoneCall whose state is changed. state
- The new LinphoneCallState of the call message
- An informational message about the state. void onTmmbrReceived(@NonNull Call call, int streamIndex, int tmmbr)
call
- LinphoneCall for which the TMMBR has changed streamIndex
- the index of the current stream tmmbr
- the value of the received TMMBR void onStatsUpdated(@NonNull Call call, @NonNull CallStats stats)
call
- LinphoneCall object whose statistics are notified stats
- LinphoneCallStats object void onEncryptionChanged(@NonNull Call call, boolean on, @Nullable java.lang.String authenticationToken)
call
- LinphoneCall object whose encryption is changed. on
- Whether encryption is activated. authenticationToken
- An authentication_token, currently set for ZRTP kindvoid onRemoteRecording(@NonNull Call call, boolean recording)
call
- LinphoneCall for which the audio is recorded recording
- true if the call is being recorded by the remote, falsevoid onAudioDeviceChanged(@NonNull Call call, @NonNull AudioDevice audioDevice)
call
- LinphoneCall for which the audio device has changed audioDevice
- the new audio device used for this call void onAckProcessing(@NonNull Call call, @NonNull Headers ack, boolean isReceived)
call
- LinphoneCall for which an ACK is being received or sent ack
- the ACK LinphoneHeaders isReceived
- if true this ACK is an incoming one, otherwise it is an ACKvoid onTransferStateChanged(@NonNull Call call, Call.State state)
call
- LinphoneCall that was transfered state
- The LinphoneCallState of the call to transfer target at the farvoid onNextVideoFrameDecoded(@NonNull Call call)
call
- LinphoneCall for which the next video frame has been decoded