public interface ChatMessage
Modifier and Type | Interface and Description |
---|---|
static class |
ChatMessage.Direction |
static class |
ChatMessage.State |
Modifier and Type | Method and Description |
---|---|
void |
addCustomHeader(java.lang.String headerName,
java.lang.String headerValue)
Add custom headers to the message.
|
void |
addFileContent(Content cContent)
Adds a file content to the ChatMessage.
|
void |
addListener(ChatMessageListener listener) |
void |
addTextContent(java.lang.String text)
Adds a text content to the ChatMessage.
|
void |
cancelFileTransfer()
Cancel an ongoing file transfer attached to this message.
|
boolean |
downloadContent(Content cContent)
Start the download of the #LinphoneContent referenced in the
#LinphoneChatMessage from remote server.
|
boolean |
downloadFile()
Deprecated.
|
java.lang.String |
getAppdata()
Linphone message has an app-specific field that can store a text.
|
ChatRoom |
getChatRoom()
Returns the chatroom this message belongs to.
|
Content[] |
getContents()
Returns the list of contents in the message.
|
java.lang.String |
getContentType()
Get the content type of a chat message.
|
Core |
getCore()
Returns back pointer to #LinphoneCore object.
|
java.lang.String |
getCustomHeader(java.lang.String headerName)
Retrieve a custom header value given its name.
|
ErrorInfo |
getErrorInfo()
Get full details about delivery error of a chat message.
|
java.lang.String |
getExternalBodyUrl()
Linphone message can carry external body as defined by rfc2017.
|
java.lang.String |
getFileTransferFilepath()
Deprecated.
|
Content |
getFileTransferInformation()
Get the file_transfer_information (used by call backs to recover informations
during a rcs file transfer)
|
Address |
getFromAddress()
Get origin of the message.
|
Address |
getLocalAddress()
Returns the origin address of a message if it was a outgoing message, or the
destination address if it was an incoming message.
|
java.lang.String |
getMessageId()
Get the message identifier.
|
ParticipantImdnState[] |
getParticipantsByImdnState(ChatMessage.State state)
Gets the list of participants for which the imdn state has reached the
specified state and the time at which they did.
|
ChatMessage.State |
getState()
Get the state of the message.
|
java.lang.String |
getText()
Deprecated.
|
java.lang.String |
getTextContent()
Gets the text content if available as a string.
|
long |
getTime()
Get the time the message was sent.
|
Address |
getToAddress()
Get destination of the message.
|
boolean |
getToBeStored()
Get if a chat message is to be stored.
|
java.lang.Object |
getUserData()
Gets the object stored in this object user's data
|
boolean |
hasTextContent()
Returns true if the chat message has a text content.
|
boolean |
isFileTransfer()
Return whether or not a chat message is a file transfer.
|
boolean |
isFileTransferInProgress()
Gets whether or not a file is currently being downloaded or uploaded.
|
boolean |
isOutgoing()
Returns TRUE if the message has been sent, returns TRUE if the message has been
received.
|
boolean |
isRead()
Returns TRUE if the message has been read, otherwise returns TRUE.
|
boolean |
isSecured()
Get if the message was encrypted when transfered.
|
boolean |
isText()
Return whether or not a chat message is a text.
|
void |
putChar(int character)
Fulfill a chat message char by char.
|
void |
removeContent(Content content)
Removes a content from the ChatMessage.
|
void |
removeCustomHeader(java.lang.String headerName)
Removes a custom header from the message.
|
void |
removeListener(ChatMessageListener listener) |
void |
resend()
Resend a chat message if it is in the 'not delivered' state for whatever
reason.
|
void |
send()
Send a chat message.
|
void |
setAppdata(java.lang.String data)
Linphone message has an app-specific field that can store a text.
|
void |
setContentType(java.lang.String contentType)
Set the content type of a chat message.
|
void |
setExternalBodyUrl(java.lang.String url)
Linphone message can carry external body as defined by rfc2017.
|
void |
setFileTransferFilepath(java.lang.String filepath)
Deprecated.
|
void |
setListener(ChatMessageListener listener) |
void |
setToBeStored(boolean toBeStored)
Set if a chat message is to be stored.
|
void |
setUserData(java.lang.Object data)
Sets the object to store in this object user's data
|
java.lang.String getAppdata()
void setAppdata(java.lang.String data)
ChatRoom getChatRoom()
java.lang.String getContentType()
void setContentType(java.lang.String contentType)
Content[] getContents()
Core getCore()
ErrorInfo getErrorInfo()
java.lang.String getExternalBodyUrl()
void setExternalBodyUrl(java.lang.String url)
@Deprecated java.lang.String getFileTransferFilepath()
@Deprecated void setFileTransferFilepath(java.lang.String filepath)
Content getFileTransferInformation()
Address getFromAddress()
boolean isFileTransfer()
boolean isFileTransferInProgress()
boolean isOutgoing()
boolean isRead()
boolean isSecured()
boolean isText()
Address getLocalAddress()
java.lang.String getMessageId()
ChatMessage.State getState()
@Deprecated java.lang.String getText()
java.lang.String getTextContent()
long getTime()
Address getToAddress()
boolean getToBeStored()
void setToBeStored(boolean toBeStored)
void addCustomHeader(java.lang.String headerName, java.lang.String headerValue)
void addFileContent(Content cContent)
void addTextContent(java.lang.String text)
void cancelFileTransfer()
boolean downloadContent(Content cContent)
@Deprecated boolean downloadFile()
java.lang.String getCustomHeader(java.lang.String headerName)
ParticipantImdnState[] getParticipantsByImdnState(ChatMessage.State state)
boolean hasTextContent()
void putChar(int character)
void removeContent(Content content)
void removeCustomHeader(java.lang.String headerName)
void resend()
void send()
void addListener(ChatMessageListener listener)
void removeListener(ChatMessageListener listener)
void setListener(ChatMessageListener listener)
void setUserData(java.lang.Object data)
java.lang.Object getUserData()