类 | |
| enum | EMDownloadStatus |
Public 成员函数 | |
| 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) |
文件类消息的基类。
| com.hyphenate.chat.EMFileMessageBody.EMFileMessageBody | ( | String | localPath | ) |
文件类型消息体构造方法。
| localPath | 文件的绝对路径或者资源标志符的字符串形式。 |
| com.hyphenate.chat.EMFileMessageBody.EMFileMessageBody | ( | Uri | localPath | ) |
文件类型消息体构造方法。
| localPath | 文件的资源标志符。 |
| String com.hyphenate.chat.EMFileMessageBody.displayName | ( | ) |
获取文件名。
| EMDownloadStatus com.hyphenate.chat.EMFileMessageBody.downloadStatus | ( | ) |
获取文件的下载状态。
正在下载文件消息。
下载文件消息成功。
下载文件消息失败。
文件消息下载正在等待中。
| String com.hyphenate.chat.EMFileMessageBody.getFileName | ( | ) |
| Uri com.hyphenate.chat.EMFileMessageBody.getLocalUri | ( | ) |
本地图片、语音等文件的资源标识符 URI。
| String com.hyphenate.chat.EMFileMessageBody.getLocalUrl | ( | ) |
本地图片,语音等文件的路径或者资源标志符的字符串形式。
| String com.hyphenate.chat.EMFileMessageBody.getRemoteUrl | ( | ) |
远程图片,声音等的服务器路径。
| String com.hyphenate.chat.EMFileMessageBody.getSecret | ( | ) |
获取服务器生成的文件的密钥。
| void com.hyphenate.chat.EMFileMessageBody.setDownloadStatus | ( | EMDownloadStatus | status | ) |
设置文件的下载状态。
| status | 文件的下载状态。 |
| void com.hyphenate.chat.EMFileMessageBody.setFileLength | ( | long | length | ) |
设置文件大小,以字节为单位。
| length | 文件大小,以字节为单位。 |
| void com.hyphenate.chat.EMFileMessageBody.setFileName | ( | String | fileName | ) |
设置文件名。
| fileName | 文件名。 |
| void com.hyphenate.chat.EMFileMessageBody.setLocalUrl | ( | String | localUrl | ) |
设置本地文件路径。
| localUrl | 文件的绝对路径或者资源标志符的字符串形式。 |
| void com.hyphenate.chat.EMFileMessageBody.setLocalUrl | ( | Uri | localUrl | ) |
设置本地文件的资源标识符。
| localUrl | 文件的资源标志符。 |
| void com.hyphenate.chat.EMFileMessageBody.setRemoteUrl | ( | String | remoteUrl | ) |
设置文件消息体文件的服务器地址。
| remoteUrl | 文件的服务器地址。 |
| void com.hyphenate.chat.EMFileMessageBody.setSecret | ( | String | secret | ) |
设置文件的密钥,此方法一般由 SDK 调用。
| secret | 文件的密钥。 |