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