the image message body class
EMImageMessageBody body = new EMImageMessageBody(imageFile);
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody |
( |
File |
imageFile | ) |
|
create a image message body
- Parameters
-
String com.hyphenate.chat.EMImageMessageBody.getFileName |
( |
| ) |
|
get image file name
- Returns
int com.hyphenate.chat.EMImageMessageBody.getHeight |
( |
| ) |
|
String com.hyphenate.chat.EMImageMessageBody.getThumbnailUrl |
( |
| ) |
|
get the thumbnail url when received the message ,sdk will download the thumbnail automatic
- Returns
int com.hyphenate.chat.EMImageMessageBody.getWidth |
( |
| ) |
|
boolean com.hyphenate.chat.EMImageMessageBody.isSendOriginalImage |
( |
| ) |
|
get whether send original image
void com.hyphenate.chat.EMImageMessageBody.setSendOriginalImage |
( |
boolean |
sendOriginalImage | ) |
|
set whether send original image when sending image, the default is to send the figure after the compression(image greater than 100k will be compress)
- Parameters
-
void com.hyphenate.chat.EMImageMessageBody.setThumbnailUrl |
( |
String |
thumbnailUrl | ) |
|
set the thumbnail url
- Parameters
-
EMDownloadStatus com.hyphenate.chat.EMImageMessageBody.thumbnailDownloadStatus |
( |
| ) |
|
get the download status of the thumbnail
- Returns
String com.hyphenate.chat.EMImageMessageBody.thumbnailLocalPath |
( |
| ) |
|
get local path of thumbnail
- Returns
final Parcelable.Creator<EMImageMessageBody> com.hyphenate.chat.EMImageMessageBody.CREATOR |
|
static |
Initial value:= new Parcelable.Creator<EMImageMessageBody>() {
public EMImageMessageBody createFromParcel(Parcel in) {
return new EMImageMessageBody(in);
}
public EMImageMessageBody[] newArray(int size) {
return new EMImageMessageBody[size];
}
}
The documentation for this class was generated from the following file:
- hyphenatechatsdk/src/com/hyphenate/chat/EMImageMessageBody.java