hyphenate_SDK4.0 4.6.0
hyphenate java IM SDK
Public 成员函数 | 所有成员列表
com.hyphenate.chat.EMNormalFileMessageBody类 参考
类 com.hyphenate.chat.EMNormalFileMessageBody 继承关系图:
com.hyphenate.chat.EMFileMessageBody com.hyphenate.chat.EMMessageBody

Public 成员函数

 EMNormalFileMessageBody (File file)
 
 EMNormalFileMessageBody (Uri localPath)
 
long getFileSize ()
 
- Public 成员函数 继承自 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 成员函数 继承自 com.hyphenate.chat.EMMessageBody
long operationTime ()
 
String operatorId ()
 
int operationCount ()
 

详细描述

普通文件消息体。

构造及析构函数说明

◆ EMNormalFileMessageBody() [1/2]

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

用文件构造一个普通文件消息体。

参数
file文件对象。

◆ EMNormalFileMessageBody() [2/2]

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

用文件的 Uri 构造一个普通文件消息体。

参数
localPath文件的资源标识符(路径)。

成员函数说明

◆ getFileSize()

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

获取文件大小。

返回
文件大小。

该类的文档由以下文件生成: