public interface ChatMessageListener
Modifier and Type | Method and Description |
---|---|
void |
onEphemeralMessageDeleted(ChatMessage msg)
Call back used to notify ephemeral message is deleted.
|
void |
onEphemeralMessageTimerStarted(ChatMessage msg)
Callback used to notify an ephemeral message that its lifespan before
disappearing has started to decrease.
|
void |
onFileTransferProgressIndication(ChatMessage msg,
Content content,
int offset,
int total)
File transfer progress indication callback prototype.
|
void |
onFileTransferRecv(ChatMessage msg,
Content content,
Buffer buffer)
File transfer receive callback prototype.
|
Buffer |
onFileTransferSend(ChatMessage msg,
Content content,
int offset,
int size)
File transfer send callback prototype.
|
void |
onMsgStateChanged(ChatMessage msg,
ChatMessage.State state)
Call back used to notify message delivery status.
|
void |
onParticipantImdnStateChanged(ChatMessage msg,
ParticipantImdnState state)
Call back used to notify participant IMDN state.
|
void onParticipantImdnStateChanged(ChatMessage msg, ParticipantImdnState state)
state
- LinphoneParticipantImdnStatevoid onFileTransferRecv(ChatMessage msg, Content content, Buffer buffer)
buffer
- LinphoneBuffer holding the received data. Empty buffer means end
of file.Buffer onFileTransferSend(ChatMessage msg, Content content, int offset, int size)
size
- the number of bytes expected by the frameworkvoid onEphemeralMessageTimerStarted(ChatMessage msg)
msg
- LinphoneChatMessage objectvoid onFileTransferProgressIndication(ChatMessage msg, Content content, int offset, int total)
total
- The total number of bytes to be sent/received.void onMsgStateChanged(ChatMessage msg, ChatMessage.State state)
msg
- LinphoneChatMessage objectvoid onEphemeralMessageDeleted(ChatMessage msg)
msg
- LinphoneChatMessage object