Class ChatMessageListenerStub

java.lang.Object
org.linphone.core.ChatMessageListenerStub
All Implemented Interfaces:
ChatMessageListener

public class ChatMessageListenerStub extends Object implements ChatMessageListener
  • Constructor Details

    • ChatMessageListenerStub

      public ChatMessageListenerStub()
  • Method Details

    • onMsgStateChanged

      public void onMsgStateChanged(@NonNull ChatMessage message, ChatMessage.State state)
      Description copied from interface: ChatMessageListener
      Call back used to notify message delivery status.

      Specified by:
      onMsgStateChanged in interface ChatMessageListener
      Parameters:
      message - ChatMessage object
      state - ChatMessage#State
    • onNewMessageReaction

      public void onNewMessageReaction(@NonNull ChatMessage message, @NonNull ChatMessageReaction reaction)
      Description copied from interface: ChatMessageListener
      Callback used to notify a reaction has been received or sent for a given
      message.

      Specified by:
      onNewMessageReaction in interface ChatMessageListener
      Parameters:
      message - LinphoneChatMessage object
      reaction - the LinphoneChatMessageReaction reaction that was sent or
      received
    • onReactionRemoved

      public void onReactionRemoved(@NonNull ChatMessage message, @NonNull Address address)
      Description copied from interface: ChatMessageListener
      Callback used to notify a reaction has been removed from a given message.

      Specified by:
      onReactionRemoved in interface ChatMessageListener
      Parameters:
      message - LinphoneChatMessage object
      address - the LinphoneAddress of the person that removed it's reaction
    • onFileTransferRecv

      public void onFileTransferRecv(@NonNull ChatMessage message, @NonNull Content content, @NonNull Buffer buffer)
      Description copied from interface: ChatMessageListener
      File transfer receive callback prototype.

      This function is called by the core upon an incoming File transfer is started.
      This function may be call several time for the same file in case of large file.
      Specified by:
      onFileTransferRecv in interface ChatMessageListener
      Parameters:
      message - ChatMessage message from which the body is received.
      content - Content incoming content information
      buffer - Buffer holding the received data. Empty buffer means end
      of file.
    • onFileTransferSend

      public Buffer onFileTransferSend(@NonNull ChatMessage message, @NonNull Content content, int offset, int size)
      Description copied from interface: ChatMessageListener
      File transfer send callback prototype.

      This function is called by the core when an outgoing file transfer is started.
      This function is called until size is set to 0.
      Specified by:
      onFileTransferSend in interface ChatMessageListener
      Parameters:
      message - ChatMessage message from which the body is received.
      content - Content outgoing content
      offset - the offset in the file from where to get the data to be sent
      size - the number of bytes expected by the framework
      Returns:
      A Buffer object holding the data written by the application. An
      empty buffer means end of file.
      warning: The returned value isn't used, hence the deprecation!
    • onFileTransferSendChunk

      public void onFileTransferSendChunk(@NonNull ChatMessage message, @NonNull Content content, int offset, int size, @NonNull Buffer buffer)
      Description copied from interface: ChatMessageListener
      File transfer send callback prototype.

      This function is called by the core when an outgoing file transfer is started.
      This function is called until size is set to 0.
      Specified by:
      onFileTransferSendChunk in interface ChatMessageListener
      Parameters:
      message - ChatMessage message from which the body is received.
      content - Content outgoing content
      offset - the offset in the file from where to get the data to be sent
      size - the number of bytes expected by the framework
      buffer - A Buffer to be filled. Leave it empty when end of file
      has been reached.
    • onFileTransferProgressIndication

      public void onFileTransferProgressIndication(@NonNull ChatMessage message, @NonNull Content content, int offset, int total)
      Description copied from interface: ChatMessageListener
      File transfer progress indication callback prototype.

      Specified by:
      onFileTransferProgressIndication in interface ChatMessageListener
      Parameters:
      message - ChatMessage message from which the body is received.
      content - Content incoming content information
      offset - The number of bytes sent/received since the beginning of the
      transfer.
      total - The total number of bytes to be sent/received.
    • onParticipantImdnStateChanged

      public void onParticipantImdnStateChanged(@NonNull ChatMessage message, @NonNull ParticipantImdnState state)
      Description copied from interface: ChatMessageListener
      Call back used to notify participant IMDN state.

      Specified by:
      onParticipantImdnStateChanged in interface ChatMessageListener
      Parameters:
      message - ChatMessage object
      state - ParticipantImdnState
    • onEphemeralMessageTimerStarted

      public void onEphemeralMessageTimerStarted(@NonNull ChatMessage message)
      Description copied from interface: ChatMessageListener
      Callback used to notify an ephemeral message that its lifespan before
      disappearing has started to decrease.

      This callback is called when the ephemeral message is read by the receiver.
      Specified by:
      onEphemeralMessageTimerStarted in interface ChatMessageListener
      Parameters:
      message - LinphoneChatMessage object
    • onEphemeralMessageDeleted

      public void onEphemeralMessageDeleted(@NonNull ChatMessage message)
      Description copied from interface: ChatMessageListener
      Call back used to notify ephemeral message is deleted.

      Specified by:
      onEphemeralMessageDeleted in interface ChatMessageListener
      Parameters:
      message - LinphoneChatMessage object