hyphenate_SDK3.0
3.6.1
hyphenatejavaIMSDK
|
Public 成员函数 | |
EMImageMessageBody (File imageFile) | |
EMImageMessageBody (File imageFile, File thumbnailFile) | |
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 () |
String | thumbnailLocalPath () |
void | setThumbnailLocalPath (String localPath) |
void | setThumbnailSize (int width, int height) |
EMDownloadStatus | thumbnailDownloadStatus () |
Public 成员函数 继承自 com.hyphenate.chat.EMBase< EMAMessageBody > | |
boolean | equals (Object o) |
int | hashCode () |
静态 Public 属性 | |
static final Parcelable.Creator< EMImageMessageBody > | CREATOR |
额外继承的成员函数 | |
Protected 属性 继承自 com.hyphenate.chat.EMBase< EMAMessageBody > | |
T | emaObject |
图片消息体
EMImageMessageBody body = new EMImageMessageBody(imageFile);
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody | ( | File | imageFile | ) |
创建一个图片消息体
imageFile | 图片文件 |
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody | ( | File | imageFile, |
File | thumbnailFile | ||
) |
创建一个图片消息体
imageFile | 图片文件 |
imageFile | 缩略图 |
String com.hyphenate.chat.EMImageMessageBody.getFileName | ( | ) |
获取图片文件名字
int com.hyphenate.chat.EMImageMessageBody.getHeight | ( | ) |
获取图片的高度
String com.hyphenate.chat.EMImageMessageBody.getThumbnailUrl | ( | ) |
获取缩略图的url 接受消息时,接收方会自动根据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 | ) |
设置缩略图本地路径
void com.hyphenate.chat.EMImageMessageBody.setThumbnailSize | ( | int | width, |
int | height | ||
) |
设置缩略图的宽和高
void com.hyphenate.chat.EMImageMessageBody.setThumbnailUrl | ( | String | thumbnailUrl | ) |
设置缩略图路径
thumbnailUrl |
EMDownloadStatus com.hyphenate.chat.EMImageMessageBody.thumbnailDownloadStatus | ( | ) |
获取缩略图的下载状态
String com.hyphenate.chat.EMImageMessageBody.thumbnailLocalPath | ( | ) |
获取缩略图本地路径
|
static |