public interface LinphoneChatMessage
Modifier and Type | Interface and Description |
---|---|
static interface |
LinphoneChatMessage.LinphoneChatMessageListener |
static class |
LinphoneChatMessage.State |
static interface |
LinphoneChatMessage.StateListener
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addCustomHeader(String name,
String value)
Add a custom header into the message.
|
void |
cancelFileTransfer()
Cancel an ongoing file transfer attached to this message.
|
void |
destroy()
Frees the underlying native resource of the message.
|
int |
downloadFile()
Start the download of the file referenced in a LinphoneChatMessage from remote server.
|
String |
getAppData() |
String |
getCustomHeader(String name)
Obtain a header value.
|
ErrorInfo |
getErrorInfo()
Returns full error in case of failure when sending message.
|
String |
getExternalBodyUrl()
Linphone message can carry external body as defined by rfc2017
|
LinphoneContent |
getFileTransferInformation()
Get the file_transfer_information (used by call backs to recover informations during a rcs file transfer)
|
LinphoneAddress |
getFrom()
get from address associated to this LinphoneChatMessage
|
LinphoneAddress |
getPeerAddress()
get peer address associated to this LinphoneChatMessage
|
Reason |
getReason() |
LinphoneChatMessage.State |
getStatus()
Gets the status of the message
|
int |
getStorageId()
Returns the id used to id this message in the database
|
String |
getText()
get text associated to this LinphoneChatMessage
|
long |
getTime()
Gets the time at which the message was sent
|
LinphoneAddress |
getTo()
Get destination address of the LinphoneChatMessage.
|
boolean |
isOutgoing()
Returns wether the message has been sent or received
|
boolean |
isRead()
Returns wether or not the message has been read
|
void |
putChar(long character)
Fulfill a chat message char by char.
|
void |
setAppData(String data)
Sets data in the chat message
|
void |
setExternalBodyUrl(String url)
Linphone message can carry external body as defined by rfc2017
|
void |
setFileTransferFilepath(String path)
Set the path to the file to read from or write to during the file transfer.
|
void |
setListener(LinphoneChatMessage.LinphoneChatMessageListener listener)
Set the callbacks associated with the LinphoneChatMessage.
|
void |
store()
THIS METHOD IS ONLY USED TO IMPORT OLD MESSAGES, DON'T USE IT FOR ANY OTHER USAGE!
|
String getText()
LinphoneAddress getPeerAddress()
LinphoneAddress getFrom()
LinphoneAddress getTo()
String getExternalBodyUrl()
void setExternalBodyUrl(String url)
url
- ex: access-type=URL; URL="http://www.foo.com/file"void addCustomHeader(String name, String value)
String getCustomHeader(String name)
name
- long getTime()
LinphoneChatMessage.State getStatus()
boolean isRead()
boolean isOutgoing()
void store()
int getStorageId()
Reason getReason()
ErrorInfo getErrorInfo()
void cancelFileTransfer()
LinphoneContent getFileTransferInformation()
void setAppData(String data)
data
- to store in the messageString getAppData()
void setFileTransferFilepath(String path)
path
- The path to the file to use for the file transfer.int downloadFile()
void setListener(LinphoneChatMessage.LinphoneChatMessageListener listener)
void putChar(long character) throws LinphoneCoreException
character
- T.140 charLinphoneCoreException
void destroy()