agora_chat_SDK  3.8.2
agorajavachatSDK
Public Member Functions | Static Public Attributes | List of all members
io.agora.chat.NormalFileMessageBody Class Reference
Inheritance diagram for io.agora.chat.NormalFileMessageBody:
io.agora.chat.FileMessageBody io.agora.chat.MessageBody

Public Member Functions

 NormalFileMessageBody (File file)
 
 NormalFileMessageBody (Uri localPath)
 
int describeContents ()
 
void writeToParcel (Parcel dest, int flags)
 
String toString ()
 
long getFileSize ()
 
- Public Member Functions inherited from io.agora.chat.FileMessageBody
 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)
 

Static Public Attributes

static final Parcelable.Creator< NormalFileMessageBodyCREATOR
 

Detailed Description

Normal file message body

Constructor & Destructor Documentation

io.agora.chat.NormalFileMessageBody.NormalFileMessageBody ( File  file)

Create a normal file message body

Parameters
file
io.agora.chat.NormalFileMessageBody.NormalFileMessageBody ( Uri  localPath)

Create a normal file message body

Parameters
localPathThe file Uri

Member Function Documentation

long io.agora.chat.NormalFileMessageBody.getFileSize ( )

Get the normal file size

Returns
File length

Member Data Documentation

final Parcelable.Creator<NormalFileMessageBody> io.agora.chat.NormalFileMessageBody.CREATOR
static
Initial value:
= new Parcelable.Creator<NormalFileMessageBody>() {
public NormalFileMessageBody createFromParcel(Parcel in) {
return new NormalFileMessageBody(in);
}
public NormalFileMessageBody[] newArray(int size) {
return new NormalFileMessageBody[size];
}
}

The documentation for this class was generated from the following file: