NIMSDK-AOS  10.9.80
静态 Public 成员函数 | 所有成员列表
com.netease.nimlib.sdk.v2.utils.V2NIMMessageAttachmentUtil类 参考

消息附件工具类 更多...

静态 Public 成员函数

static String getFileAttachmentPath (V2NIMMessageFileAttachment fileAttachment)
 获取文件路径 更多...
 
static String getDownloadAttachmentDefaultStoragePath (V2NIMMessageFileAttachment fileAttachment)
 获取V2NIMStorageService#downloadAttachment的默认存储路径 更多...
 
static String getFileAttachmentStoragePath (V2NIMMessageFileAttachment fileAttachment)
 获取文件存储路径,和V1逻辑保持一致 更多...
 
static String getFileAttachmentThumbPath (V2NIMMessageFileAttachment fileAttachment)
 获取文件缩略图路径,和V1逻辑保持一致 更多...
 
static String getDownloadAttachmentDefaultThumbStoragePath (V2NIMMessageFileAttachment fileAttachment)
 获取V2NIMStorageService#downloadAttachment的缩略图默认存储路径 更多...
 
static String getFileAttachmentThumbStoragePath (V2NIMMessageFileAttachment fileAttachment)
 获取文件缩略图存储路径,和V1逻辑保持一致 更多...
 

详细描述

消息附件工具类

在文件 V2NIMMessageAttachmentUtil.java21 行定义.

成员函数说明

static String com.netease.nimlib.sdk.v2.utils.V2NIMMessageAttachmentUtil.getDownloadAttachmentDefaultStoragePath ( V2NIMMessageFileAttachment  fileAttachment)
static

获取V2NIMStorageService#downloadAttachment的默认存储路径

参数
fileAttachment文件附件
返回
文件存储路径,一般不为null,fileAttachment为null时返回null

在文件 V2NIMMessageAttachmentUtil.java52 行定义.

static String com.netease.nimlib.sdk.v2.utils.V2NIMMessageAttachmentUtil.getDownloadAttachmentDefaultThumbStoragePath ( V2NIMMessageFileAttachment  fileAttachment)
static

获取V2NIMStorageService#downloadAttachment的缩略图默认存储路径

参数
fileAttachment文件附件
返回
文件存储路径,一般不为null,fileAttachment为null时返回null

在文件 V2NIMMessageAttachmentUtil.java110 行定义.

static String com.netease.nimlib.sdk.v2.utils.V2NIMMessageAttachmentUtil.getFileAttachmentPath ( V2NIMMessageFileAttachment  fileAttachment)
static

获取文件路径

参数
fileAttachment文件附件
返回
文件路径,如果文件不存在,返回null

在文件 V2NIMMessageAttachmentUtil.java33 行定义.

static String com.netease.nimlib.sdk.v2.utils.V2NIMMessageAttachmentUtil.getFileAttachmentStoragePath ( V2NIMMessageFileAttachment  fileAttachment)
static

获取文件存储路径,和V1逻辑保持一致

参数
fileAttachment文件附件
返回
文件存储路径,一般不为null,fileAttachment为null时返回null

在文件 V2NIMMessageAttachmentUtil.java70 行定义.

static String com.netease.nimlib.sdk.v2.utils.V2NIMMessageAttachmentUtil.getFileAttachmentThumbPath ( V2NIMMessageFileAttachment  fileAttachment)
static

获取文件缩略图路径,和V1逻辑保持一致

参数
fileAttachment文件附件
返回
文件缩略图路径,如果文件不存在,返回null

在文件 V2NIMMessageAttachmentUtil.java91 行定义.

static String com.netease.nimlib.sdk.v2.utils.V2NIMMessageAttachmentUtil.getFileAttachmentThumbStoragePath ( V2NIMMessageFileAttachment  fileAttachment)
static

获取文件缩略图存储路径,和V1逻辑保持一致

参数
fileAttachment文件附件
返回
文件缩略图存储路径,一般不为null,fileAttachment为null时返回null

在文件 V2NIMMessageAttachmentUtil.java123 行定义.


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