Class CallListenerStub

java.lang.Object
org.linphone.core.CallListenerStub
All Implemented Interfaces:
CallListener

public class CallListenerStub extends Object implements CallListener
  • Constructor Details

    • CallListenerStub

      public CallListenerStub()
  • Method Details

    • onDtmfReceived

      public void onDtmfReceived(@NonNull Call call, int dtmf)
      Description copied from interface: CallListener
      Callback for being notified of received DTMFs.

      Specified by:
      onDtmfReceived in interface CallListener
      Parameters:
      call - Call object that received the dtmf
      dtmf - The ascii code of the dtmf
    • onGoclearAckSent

      public void onGoclearAckSent(@NonNull Call call)
      Description copied from interface: CallListener
      GoClear ACK sent callback.

      Specified by:
      onGoclearAckSent in interface CallListener
      Parameters:
      call - the Call on which the GoClear ACK was sent.
    • onEncryptionChanged

      public void onEncryptionChanged(@NonNull Call call, boolean on, @Nullable String authenticationToken)
      Description copied from interface: CallListener
      Call encryption changed callback.

      Specified by:
      onEncryptionChanged in interface CallListener
      Parameters:
      call - Call object whose encryption is changed.
      on - Whether encryption is activated.
      authenticationToken - An authentication_token, currently set for ZRTP kind
      of encryption only.
    • onSendMasterKeyChanged

      public void onSendMasterKeyChanged(@NonNull Call call, String sendMasterKey)
      Description copied from interface: CallListener
      Call send master key changed callback.

      Specified by:
      onSendMasterKeyChanged in interface CallListener
      Parameters:
      call - Call object whose encryption is changed.
    • onReceiveMasterKeyChanged

      public void onReceiveMasterKeyChanged(@NonNull Call call, String receiveMasterKey)
      Description copied from interface: CallListener
      Call receive master key changed callback.

      Specified by:
      onReceiveMasterKeyChanged in interface CallListener
      Parameters:
      call - Call object whose encryption is changed.
    • onInfoMessageReceived

      public void onInfoMessageReceived(@NonNull Call call, @NonNull InfoMessage message)
      Description copied from interface: CallListener
      Callback for receiving info messages.

      Specified by:
      onInfoMessageReceived in interface CallListener
      Parameters:
      call - Call whose info message belongs to.
      message - InfoMessage object.
    • onStateChanged

      public void onStateChanged(@NonNull Call call, Call.State state, @NonNull String message)
      Description copied from interface: CallListener
      Call state notification callback.

      Specified by:
      onStateChanged in interface CallListener
      Parameters:
      call - Call whose state is changed.
      state - The new Call#State of the call
      message - An informational message about the state.
    • onStatsUpdated

      public void onStatsUpdated(@NonNull Call call, @NonNull CallStats stats)
      Description copied from interface: CallListener
      Callback for receiving quality statistics for calls.

      Specified by:
      onStatsUpdated in interface CallListener
      Parameters:
      call - Call object whose statistics are notified
      stats - CallStats object
    • onTransferStateChanged

      public void onTransferStateChanged(@NonNull Call call, Call.State state)
      Description copied from interface: CallListener
      Callback for notifying progresses of transfers.

      Specified by:
      onTransferStateChanged in interface CallListener
      Parameters:
      call - Call that was transfered
      state - The Call#State of the call to transfer target at the far
      end.
    • onAckProcessing

      public void onAckProcessing(@NonNull Call call, @NonNull Headers ack, boolean isReceived)
      Description copied from interface: CallListener
      Callback for notifying the processing SIP ACK messages.

      Specified by:
      onAckProcessing in interface CallListener
      Parameters:
      call - Call for which an ACK is being received or sent
      ack - the ACK Headers
      isReceived - if true this ACK is an incoming one, otherwise it is an ACK
      about to be sent.
    • onTmmbrReceived

      public void onTmmbrReceived(@NonNull Call call, int streamIndex, int tmmbr)
      Description copied from interface: CallListener
      Callback for notifying a received TMMBR.

      Specified by:
      onTmmbrReceived in interface CallListener
      Parameters:
      call - LinphoneCall for which the TMMBR has changed
      streamIndex - the index of the current stream
      tmmbr - the value of the received TMMBR
    • onSnapshotTaken

      public void onSnapshotTaken(@NonNull Call call, @NonNull String filePath)
      Description copied from interface: CallListener
      Callback for notifying a snapshot taken.

      Specified by:
      onSnapshotTaken in interface CallListener
      Parameters:
      call - LinphoneCall for which the snapshot was taken
      filePath - the name of the saved file
    • onNextVideoFrameDecoded

      public void onNextVideoFrameDecoded(@NonNull Call call)
      Description copied from interface: CallListener
      Callback to notify a next video frame has been decoded.

      Specified by:
      onNextVideoFrameDecoded in interface CallListener
      Parameters:
      call - LinphoneCall for which the next video frame has been decoded
    • onCameraNotWorking

      public void onCameraNotWorking(@NonNull Call call, @NonNull String cameraName)
      Description copied from interface: CallListener
      Callback to notify that the camera is not working and has been changed to "No
      Webcam".

      A camera is detected as mis-functionning as soon as it outputs no frames at all
      during a period of 5 seconds. This check is only performed on desktop
      platforms, in the purpose of notifying camera failures, for example if when a
      usb cable gets disconnected.
      Specified by:
      onCameraNotWorking in interface CallListener
      Parameters:
      call - LinphoneCall for which the next video frame has been decoded
      cameraName - the name of the non-working camera
    • onVideoDisplayErrorOccurred

      public void onVideoDisplayErrorOccurred(@NonNull Call call, int errorCode)
      Description copied from interface: CallListener
      Callback to notify that there are errors from the video rendering.

      The error code depends of the implementation.
      Specified by:
      onVideoDisplayErrorOccurred in interface CallListener
      Parameters:
      call - LinphoneCall
      errorCode - error code from render. It depends of the renderer.
    • onAudioDeviceChanged

      public void onAudioDeviceChanged(@NonNull Call call, @NonNull AudioDevice audioDevice)
      Description copied from interface: CallListener
      Callback to notify that the audio device has been changed.

      Specified by:
      onAudioDeviceChanged in interface CallListener
      Parameters:
      call - LinphoneCall for which the audio device has changed
      audioDevice - the new audio device used for this call
    • onRemoteRecording

      public void onRemoteRecording(@NonNull Call call, boolean recording)
      Description copied from interface: CallListener
      Callback to notify that the call is being recorded by the remote.

      Specified by:
      onRemoteRecording in interface CallListener
      Parameters:
      call - LinphoneCall for which the audio is recorded
      recording - true if the call is being recorded by the remote, false
      otherwise