带有文件的附件类型的基类 描述文件的相关信息
更多...
带有文件的附件类型的基类 描述文件的相关信息
在文件 FileAttachment.java 第 20 行定义.
◆ FileAttachment() [1/2]
com.netease.nimlib.sdk.msg.attachment.FileAttachment.FileAttachment |
( |
| ) |
|
◆ FileAttachment() [2/2]
com.netease.nimlib.sdk.msg.attachment.FileAttachment.FileAttachment |
( |
String |
attach | ) |
|
◆ getDisplayName()
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.getDisplayName |
( |
| ) |
|
◆ getExpire()
long com.netease.nimlib.sdk.msg.attachment.FileAttachment.getExpire |
( |
| ) |
|
◆ getExtension()
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.getExtension |
( |
| ) |
|
◆ getFileName()
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.getFileName |
( |
| ) |
|
◆ getMd5()
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.getMd5 |
( |
| ) |
|
◆ getNosTokenSceneKey()
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.getNosTokenSceneKey |
( |
| ) |
|
◆ getPath()
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.getPath |
( |
| ) |
|
◆ getPathForSave()
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.getPathForSave |
( |
| ) |
|
◆ getSize()
long com.netease.nimlib.sdk.msg.attachment.FileAttachment.getSize |
( |
| ) |
|
◆ getThumbPath()
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.getThumbPath |
( |
| ) |
|
◆ getThumbPathForSave()
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.getThumbPathForSave |
( |
| ) |
|
◆ getUri()
Uri com.netease.nimlib.sdk.msg.attachment.FileAttachment.getUri |
( |
| ) |
|
◆ getUrl()
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.getUrl |
( |
| ) |
|
◆ isForceUpload()
boolean com.netease.nimlib.sdk.msg.attachment.FileAttachment.isForceUpload |
( |
| ) |
|
◆ load()
void com.netease.nimlib.sdk.msg.attachment.FileAttachment.load |
( |
JSONObject |
json | ) |
|
|
protected |
◆ save()
void com.netease.nimlib.sdk.msg.attachment.FileAttachment.save |
( |
JSONObject |
json | ) |
|
|
protected |
◆ setDisplayName()
void com.netease.nimlib.sdk.msg.attachment.FileAttachment.setDisplayName |
( |
String |
displayName | ) |
|
◆ setExtension()
void com.netease.nimlib.sdk.msg.attachment.FileAttachment.setExtension |
( |
String |
extension | ) |
|
◆ setForceUpload()
void com.netease.nimlib.sdk.msg.attachment.FileAttachment.setForceUpload |
( |
boolean |
forceUpload | ) |
|
◆ setMd5()
void com.netease.nimlib.sdk.msg.attachment.FileAttachment.setMd5 |
( |
String |
md5 | ) |
|
◆ setNosTokenSceneKey()
void com.netease.nimlib.sdk.msg.attachment.FileAttachment.setNosTokenSceneKey |
( |
String |
nosTokenSceneKey | ) |
|
◆ setPath()
void com.netease.nimlib.sdk.msg.attachment.FileAttachment.setPath |
( |
String |
path | ) |
|
◆ setSize()
void com.netease.nimlib.sdk.msg.attachment.FileAttachment.setSize |
( |
long |
size | ) |
|
◆ setUri()
boolean com.netease.nimlib.sdk.msg.attachment.FileAttachment.setUri |
( |
Uri |
uri | ) |
|
设置文件uri, 仅支持ContentResolver.SCHEME_FILE类型和ContentResolver.SCHEME_CONTENT类型的uri 仅支持发送消息时使用,接收的消息附件不支持uri
- 参数
-
- 返回
- false表示不支持的uri
在文件 FileAttachment.java 第 146 行定义.
◆ setUrl()
void com.netease.nimlib.sdk.msg.attachment.FileAttachment.setUrl |
( |
String |
url | ) |
|
◆ storageType()
NimStorageType com.netease.nimlib.sdk.msg.attachment.FileAttachment.storageType |
( |
| ) |
|
|
protected |
◆ toJson()
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.toJson |
( |
boolean |
send | ) |
|
◆ displayName
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.displayName |
|
protected |
◆ extension
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.extension |
|
protected |
◆ forceUpload
boolean com.netease.nimlib.sdk.msg.attachment.FileAttachment.forceUpload = false |
|
protected |
◆ md5
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.md5 |
|
protected |
◆ nosTokenSceneKey
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.nosTokenSceneKey = NimNosSceneKeyConstant.NIM_DEFAULT_IM |
|
protected |
◆ path
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.path |
|
protected |
◆ size
long com.netease.nimlib.sdk.msg.attachment.FileAttachment.size |
|
protected |
◆ url
String com.netease.nimlib.sdk.msg.attachment.FileAttachment.url |
|
protected |
该类的文档由以下文件生成: