public interface ChatMessageListener
Modifier and Type | Method and Description |
---|---|
void |
onEphemeralMessageDeleted(ChatMessage message)
Call back used to notify ephemeral message is deleted.
|
void |
onEphemeralMessageTimerStarted(ChatMessage message)
Callback used to notify an ephemeral message that its lifespan before
disappearing has started to decrease. |
void |
onFileTransferProgressIndication(ChatMessage message,
Content content,
int offset,
int total)
File transfer progress indication callback prototype.
|
void |
onFileTransferRecv(ChatMessage message,
Content content,
Buffer buffer)
File transfer receive callback prototype.
|
Buffer |
onFileTransferSend(ChatMessage message,
Content content,
int offset,
int size)
Deprecated.
17/08/2020 Use LinphoneChatMessageCbsFileTransferSendChunkCb
instead. |
void |
onFileTransferSendChunk(ChatMessage message,
Content content,
int offset,
int size,
Buffer buffer)
File transfer send callback prototype.
|
void |
onMsgStateChanged(ChatMessage message,
ChatMessage.State state)
Call back used to notify message delivery status.
|
void |
onParticipantImdnStateChanged(ChatMessage message,
ParticipantImdnState state)
Call back used to notify participant IMDN state.
|
void onEphemeralMessageTimerStarted(@NonNull ChatMessage message)
message
- LinphoneChatMessage object void onFileTransferProgressIndication(@NonNull ChatMessage message, @NonNull Content content, int offset, int total)
message
- LinphoneChatMessage message from which the body is received. content
- LinphoneContent incoming content information offset
- The number of bytes sent/received since the beginning of thetotal
- The total number of bytes to be sent/received. void onMsgStateChanged(@NonNull ChatMessage message, ChatMessage.State state)
message
- LinphoneChatMessage object state
- LinphoneChatMessageState void onFileTransferRecv(@NonNull ChatMessage message, @NonNull Content content, @NonNull Buffer buffer)
message
- LinphoneChatMessage message from which the body is received. content
- LinphoneContent incoming content information buffer
- LinphoneBuffer holding the received data. Empty buffer means endvoid onFileTransferSendChunk(@NonNull ChatMessage message, @NonNull Content content, int offset, int size, @NonNull Buffer buffer)
message
- LinphoneChatMessage message from which the body is received. content
- LinphoneContent 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 LinphoneBuffer to be filled. Leave it empty when end of fileBuffer onFileTransferSend(@NonNull ChatMessage message, @NonNull Content content, int offset, int size)
message
- LinphoneChatMessage message from which the body is received. content
- LinphoneContent 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 void onParticipantImdnStateChanged(@NonNull ChatMessage message, @NonNull ParticipantImdnState state)
message
- LinphoneChatMessage object state
- LinphoneParticipantImdnState void onEphemeralMessageDeleted(@NonNull ChatMessage message)
message
- LinphoneChatMessage object