hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
|
Classes | |
enum | EMDownloadStatus |
Public Member Functions | |
EMFileMessageBody (String localPath) | |
EMFileMessageBody (Uri localPath) | |
String | getFileName () |
void | setFileName (String fileName) |
String | getLocalUrl () |
void | setLocalUrl (String localUrl) |
Uri | getLocalUri () |
void | setLocalUrl (Uri localUrl) |
String | getRemoteUrl () |
void | setRemoteUrl (String remoteUrl) |
void | setSecret (String secret) |
String | getSecret () |
String | displayName () |
void | setFileLength (long length) |
EMDownloadStatus | downloadStatus () |
void | setDownloadStatus (EMDownloadStatus status) |
The base class of file type message.
com.hyphenate.chat.EMFileMessageBody.EMFileMessageBody | ( | String | localPath | ) |
The constructor method of the file message body.
localPath | The absolute path to the attachment file or the path to the URI as a string. |
com.hyphenate.chat.EMFileMessageBody.EMFileMessageBody | ( | Uri | localPath | ) |
The constructor method of the file message body.
localPath | The localPath URI of the attachment file. |
String com.hyphenate.chat.EMFileMessageBody.displayName | ( | ) |
Gets the filename.
EMDownloadStatus com.hyphenate.chat.EMFileMessageBody.downloadStatus | ( | ) |
Gets the download status of the attachment file.
The SDK is downloading the file message.
The SDK successfully downloads the file message.
The SDK fails to download the file message.
File message download is pending.
This state is deprecated. Use EMDownloadStatusSucceed instead.
String com.hyphenate.chat.EMFileMessageBody.getFileName | ( | ) |
Uri com.hyphenate.chat.EMFileMessageBody.getLocalUri | ( | ) |
Gets the URI of the local image, voice and so on.
String com.hyphenate.chat.EMFileMessageBody.getLocalUrl | ( | ) |
The local path or the string in the form of URI of the file.
String com.hyphenate.chat.EMFileMessageBody.getRemoteUrl | ( | ) |
Gets the path of the attachment file in the server.
String com.hyphenate.chat.EMFileMessageBody.getSecret | ( | ) |
Gets the token for downloading the message attachment.
void com.hyphenate.chat.EMFileMessageBody.setDownloadStatus | ( | EMDownloadStatus | status | ) |
Sets the download status of the attachment file.
status | The downloading status of the attachment file. |
void com.hyphenate.chat.EMFileMessageBody.setFileLength | ( | long | length | ) |
Sets the data length (bytes) of the attachment file.
length | The data length (bytes) of the attachment file. |
void com.hyphenate.chat.EMFileMessageBody.setFileName | ( | String | fileName | ) |
Sets the file name.
fileName | The file name. |
void com.hyphenate.chat.EMFileMessageBody.setLocalUrl | ( | String | localUrl | ) |
Sets the local path of the file.
localUrl | The absolute path to the file or the string form of URI. |
void com.hyphenate.chat.EMFileMessageBody.setLocalUrl | ( | Uri | localUrl | ) |
Sets the URI of the local file.
localUrl | The URI of file. |
void com.hyphenate.chat.EMFileMessageBody.setRemoteUrl | ( | String | remoteUrl | ) |
Sets the path of the attachment file in the server.
remoteUrl | The path of the attachment file in the server. |
void com.hyphenate.chat.EMFileMessageBody.setSecret | ( | String | secret | ) |
Sets the file's token, this method is typically invoked by the SDK.
secret | The file's token. |