hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
Public Member Functions | List of all members
com.hyphenate.chat.EMNormalFileMessageBody Class Reference
Inheritance diagram for com.hyphenate.chat.EMNormalFileMessageBody:
com.hyphenate.chat.EMFileMessageBody com.hyphenate.chat.EMMessageBody

Public Member Functions

 EMNormalFileMessageBody (File file)
 
 EMNormalFileMessageBody (Uri localPath)
 
long getFileSize ()
 
- Public Member Functions inherited from com.hyphenate.chat.EMFileMessageBody
 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)
 
- Public Member Functions inherited from com.hyphenate.chat.EMMessageBody
long operationTime ()
 
String operatorId ()
 
int operationCount ()
 

Detailed Description

The normal file message body.

Constructor & Destructor Documentation

◆ EMNormalFileMessageBody() [1/2]

com.hyphenate.chat.EMNormalFileMessageBody.EMNormalFileMessageBody ( File  file)

Creates a file message body by the file.

Parameters
fileThe file instance.

◆ EMNormalFileMessageBody() [2/2]

com.hyphenate.chat.EMNormalFileMessageBody.EMNormalFileMessageBody ( Uri  localPath)

Creates a file message body by the file Uri.

Parameters
localPathThe file Uri.

Member Function Documentation

◆ getFileSize()

long com.hyphenate.chat.EMNormalFileMessageBody.getFileSize ( )

Gets the size of the file.

Returns
The size of the file.

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