Chat SDK for Android v1.1.0
agora java chat SDK
Public Member Functions | Static Public Attributes | List of all members Class Reference
Inheritance diagram for

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
 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

The normal file message body.

Constructor & Destructor Documentation

◆ NormalFileMessageBody() [1/2] ( File  file)

Creates a file message body by the file.

fileThe file instance.

◆ NormalFileMessageBody() [2/2] ( Uri  localPath)

Creates a file message body by the file Uri.

localPathThe file Uri.

Member Function Documentation

◆ getFileSize()

long ( )

Gets the size of the file.

The size of the file.

Member Data Documentation


final Parcelable.Creator<NormalFileMessageBody>
Initial value:
= new Parcelable.Creator<NormalFileMessageBody>() {
public NormalFileMessageBody createFromParcel(Parcel in) {
return new NormalFileMessageBody(in);
public NormalFileMessageBody[] newArray(int size) {
return new NormalFileMessageBody[size];
NormalFileMessageBody(File file)

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