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.
| String com.hyphenate.chat.EMFileMessageBody.getFileName | ( | ) |
| Uri com.hyphenate.chat.EMFileMessageBody.getLocalUri | ( | ) |
The URI of the original local image, audio, and other file.
| String com.hyphenate.chat.EMFileMessageBody.getLocalUrl | ( | ) |
The absolute path or string representation of the resource identifier for the original local image, audio, and other file.
| String com.hyphenate.chat.EMFileMessageBody.getRemoteUrl | ( | ) |
Gets the server path for remote image originals, audio, and other file.
| String com.hyphenate.chat.EMFileMessageBody.getSecret | ( | ) |
Gets the token for downloading the message attachment. For image messages: the original, large, and thumbnail images share the same token. For video messages: the video file and thumbnail share the same token.
| 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 absolute path or string representation of the resource identifier for the original local image, audio, and other 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 original local image, audio, and other file.
| localUrl | The URI of the original local image, audio, and other file. |
| void com.hyphenate.chat.EMFileMessageBody.setRemoteUrl | ( | String | remoteUrl | ) |
Sets the server path for remote image originals, audio, and other file.
| remoteUrl | The server path for remote image originals, audio, and other file. |
| void com.hyphenate.chat.EMFileMessageBody.setSecret | ( | String | secret | ) |
Sets the file's token, this method is typically invoked by the SDK. For image messages: the original, large, and thumbnail images share the same token. For video messages: the video file and thumbnail share the same token.
| secret | The file's token. |