Chat SDK for Android v1.1.0
agora java chat SDK
|
Classes | |
enum | EMDownloadStatus |
Public Member Functions | |
FileMessageBody (String localPath) | |
FileMessageBody (Uri localPath) | |
FileMessageBody (EMAFileMessageBody body) | |
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.
io.agora.chat.FileMessageBody.FileMessageBody | ( | 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. |
io.agora.chat.FileMessageBody.FileMessageBody | ( | Uri | localPath | ) |
The constructor method of the file message body.
localPath | The localPath URI of the attachment file. |
String io.agora.chat.FileMessageBody.displayName | ( | ) |
Gets the filename.
EMDownloadStatus io.agora.chat.FileMessageBody.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 io.agora.chat.FileMessageBody.getFileName | ( | ) |
Uri io.agora.chat.FileMessageBody.getLocalUri | ( | ) |
Gets the URI of the local image, voice and so on.
String io.agora.chat.FileMessageBody.getLocalUrl | ( | ) |
The local path or the string in the form of URI of the file.
String io.agora.chat.FileMessageBody.getRemoteUrl | ( | ) |
Gets the path of the attachment file in the server.
String io.agora.chat.FileMessageBody.getSecret | ( | ) |
Gets the token for downloading the message attachment.
void io.agora.chat.FileMessageBody.setDownloadStatus | ( | EMDownloadStatus | status | ) |
Sets the download status of the attachment file.
status | The downloading status of the attachment file. |
void io.agora.chat.FileMessageBody.setFileLength | ( | long | length | ) |
Sets the data length (bytes) of the attachment file.
length | The data length (bytes) of the attachment file. |
void io.agora.chat.FileMessageBody.setFileName | ( | String | fileName | ) |
Sets the file name.
fileName | The file name. |
void io.agora.chat.FileMessageBody.setLocalUrl | ( | String | localUrl | ) |
Sets the local path of the file.
localUrl | The absolute path to the file or the string form of URI. |
void io.agora.chat.FileMessageBody.setLocalUrl | ( | Uri | localUrl | ) |
Sets the URI of the local file.
localUrl | The URI of file. |
void io.agora.chat.FileMessageBody.setRemoteUrl | ( | String | remoteUrl | ) |
Sets the path of the attachment file in the server.
remoteUrl | The path of the attachment file in the server. |
void io.agora.chat.FileMessageBody.setSecret | ( | String | secret | ) |
Sets the file's token, this method is typically invoked by the SDK.
secret | The file's token. |