the image message body class
EMImageMessageBody body = new EMImageMessageBody(imageFile);
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody |
( |
File |
imageFile | ) |
|
create a image message body
- Parameters
-
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody |
( |
File |
imageFile, |
|
|
File |
thumbnailFile |
|
) |
| |
create a image message body with original image, but also upload thumbnail to server
- Parameters
-
imageFile | the original image file |
thumbnailFile | the thumbnail image file |
String com.hyphenate.chat.EMImageMessageBody.getFileName |
( |
| ) |
|
get image file name
- Returns
int com.hyphenate.chat.EMImageMessageBody.getHeight |
( |
| ) |
|
String com.hyphenate.chat.EMImageMessageBody.getThumbnailUrl |
( |
| ) |
|
Server url path of thumbnail Image receiver will get thumbnail stored under thumbnailRemotePath after a successful download automatically.
- 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.setThumbnailLocalPath |
( |
String |
localPath | ) |
|
set local path of thumbnail
void com.hyphenate.chat.EMImageMessageBody.setThumbnailSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
set the width and height of the thumbnail image
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 |
The documentation for this class was generated from the following file:
- hyphenatechatsdk/src/com/hyphenate/chat/EMImageMessageBody.java