hyphenate_SDK3.0
3.8.5
hyphenatejavaIMSDK
|
Public 成员函数 | |
EMImageMessageBody (File imageFile) | |
EMImageMessageBody (Uri imageUri) | |
EMImageMessageBody (File imageFile, File thumbnailFile) | |
EMImageMessageBody (Uri imageLocalPath, Uri thumbnailPath) | |
EMImageMessageBody (EMAImageMessageBody body) | |
String | getThumbnailUrl () |
void | setThumbnailUrl (String thumbnailUrl) |
String | toString () |
int | describeContents () |
void | writeToParcel (Parcel dest, int flags) |
void | setThumbnailSecret (String secret) |
String | getThumbnailSecret () |
void | setSendOriginalImage (boolean sendOriginalImage) |
boolean | isSendOriginalImage () |
int | getWidth () |
int | getHeight () |
String | getFileName () |
long | getFileSize () |
String | thumbnailLocalPath () |
Uri | thumbnailLocalUri () |
void | setThumbnailLocalPath (String localPath) |
void | setThumbnailLocalPath (Uri localPath) |
void | setThumbnailSize (int width, int height) |
EMDownloadStatus | thumbnailDownloadStatus () |
静态 Public 属性 | |
static final Parcelable.Creator< EMImageMessageBody > | CREATOR |
图片消息体
EMImageMessageBody body = new EMImageMessageBody(imageFile);
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody | ( | File | imageFile | ) |
创建一个图片消息体
imageFile | 图片文件 |
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody | ( | Uri | imageUri | ) |
创建一个图片消息体
imageUri | 图片的资源标识符 |
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody | ( | File | imageFile, |
File | thumbnailFile | ||
) |
创建一个图片消息体,包含附件和缩略图
imageFile | 图片文件 |
thumbnailFile | 缩略图文件 |
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody | ( | Uri | imageLocalPath, |
Uri | thumbnailPath | ||
) |
创建一个图片消息体,包含附件和缩略图
imageLocalPath | 图片uri |
thumbnailPath | 缩略图uri |
String com.hyphenate.chat.EMImageMessageBody.getFileName | ( | ) |
获取图片文件名字
long com.hyphenate.chat.EMImageMessageBody.getFileSize | ( | ) |
获取图片文件大小
int com.hyphenate.chat.EMImageMessageBody.getHeight | ( | ) |
获取图片的高度
String com.hyphenate.chat.EMImageMessageBody.getThumbnailSecret | ( | ) |
获取缩略图的访问令牌
String com.hyphenate.chat.EMImageMessageBody.getThumbnailUrl | ( | ) |
获取缩略图的服务器地址 如果设置了EMOptions#setAutoDownloadThumbnail(boolean),接受消息时, 接收方会自动根据thumbnailRemotePath下载缩略图,存储到本地
int com.hyphenate.chat.EMImageMessageBody.getWidth | ( | ) |
获取图片的宽度
boolean com.hyphenate.chat.EMImageMessageBody.isSendOriginalImage | ( | ) |
获取发送图片时,是否发送原图
void com.hyphenate.chat.EMImageMessageBody.setSendOriginalImage | ( | boolean | sendOriginalImage | ) |
设置发送图片时,是否发送原图,默认是发送压缩过后的图(图片超过100k会被压缩)
sendOriginalImage | 是否发送原图 |
void com.hyphenate.chat.EMImageMessageBody.setThumbnailLocalPath | ( | String | localPath | ) |
设置缩略图本地路径
localPath | 设置缩略图的本地路径 |
void com.hyphenate.chat.EMImageMessageBody.setThumbnailLocalPath | ( | Uri | localPath | ) |
设置缩略图本地路径
localPath | 设置缩略图的本地路径 |
void com.hyphenate.chat.EMImageMessageBody.setThumbnailSecret | ( | String | secret | ) |
设置缩略图的访问令牌
secret | 缩略图的访问令牌 |
void com.hyphenate.chat.EMImageMessageBody.setThumbnailSize | ( | int | width, |
int | height | ||
) |
设置缩略图的尺寸
width | 缩略图的宽度 |
height | 缩略图的高度 |
void com.hyphenate.chat.EMImageMessageBody.setThumbnailUrl | ( | String | thumbnailUrl | ) |
设置缩略图的服务器路径
thumbnailUrl | 缩略图的服务器路径 |
EMDownloadStatus com.hyphenate.chat.EMImageMessageBody.thumbnailDownloadStatus | ( | ) |
获取缩略图的下载状态
String com.hyphenate.chat.EMImageMessageBody.thumbnailLocalPath | ( | ) |
获取缩略图本地路径或者资源标识符的字符串类型
Uri com.hyphenate.chat.EMImageMessageBody.thumbnailLocalUri | ( | ) |
获取缩略图本地资源标识符(路径)
|
static |