the image message body class
EMImageMessageBody body = new EMImageMessageBody(imageFile);
◆ EMImageMessageBody() [1/4]
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody |
( |
File |
imageFile | ) |
|
create a image message body
- Parameters
-
◆ EMImageMessageBody() [2/4]
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody |
( |
Uri |
imageUri | ) |
|
create a image message body
- Parameters
-
◆ EMImageMessageBody() [3/4]
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 |
- Deprecated:
- Use EMImageMessageBody(Uri, Uri)
◆ EMImageMessageBody() [4/4]
com.hyphenate.chat.EMImageMessageBody.EMImageMessageBody |
( |
Uri |
imageLocalPath, |
|
|
Uri |
thumbnailPath |
|
) |
| |
create a image message body with original image, but also upload thumbnail to server
- Parameters
-
imageLocalPath | the original image uri |
thumbnailPath | the thumbnail image uri |
◆ getFileName()
String com.hyphenate.chat.EMImageMessageBody.getFileName |
( |
| ) |
|
◆ getFileSize()
long com.hyphenate.chat.EMImageMessageBody.getFileSize |
( |
| ) |
|
get the video file size
- Returns
◆ getHeight()
int com.hyphenate.chat.EMImageMessageBody.getHeight |
( |
| ) |
|
◆ getThumbnailUrl()
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
◆ getWidth()
int com.hyphenate.chat.EMImageMessageBody.getWidth |
( |
| ) |
|
◆ isSendOriginalImage()
boolean com.hyphenate.chat.EMImageMessageBody.isSendOriginalImage |
( |
| ) |
|
get whether send original image
◆ setSendOriginalImage()
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
-
◆ setThumbnailLocalPath() [1/2]
void com.hyphenate.chat.EMImageMessageBody.setThumbnailLocalPath |
( |
String |
localPath | ) |
|
set local path of thumbnail
◆ setThumbnailLocalPath() [2/2]
void com.hyphenate.chat.EMImageMessageBody.setThumbnailLocalPath |
( |
Uri |
localPath | ) |
|
set local path of thumbnail
◆ setThumbnailSize()
void com.hyphenate.chat.EMImageMessageBody.setThumbnailSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
set the width and height of the thumbnail image
◆ setThumbnailUrl()
void com.hyphenate.chat.EMImageMessageBody.setThumbnailUrl |
( |
String |
thumbnailUrl | ) |
|
set the thumbnail url
- Parameters
-
◆ thumbnailDownloadStatus()
EMDownloadStatus com.hyphenate.chat.EMImageMessageBody.thumbnailDownloadStatus |
( |
| ) |
|
get the download status of the thumbnail
- Returns
◆ thumbnailLocalPath()
String com.hyphenate.chat.EMImageMessageBody.thumbnailLocalPath |
( |
| ) |
|
get local path of thumbnail or the String style of Uri
- Returns
◆ thumbnailLocalUri()
Uri com.hyphenate.chat.EMImageMessageBody.thumbnailLocalUri |
( |
| ) |
|
get local path of thumbnail
- Returns
◆ CREATOR
final Parcelable.Creator<EMImageMessageBody> com.hyphenate.chat.EMImageMessageBody.CREATOR |
|
static |
Initial value:
}
}
}
EMImageMessageBody(File imageFile)
Definition: EMImageMessageBody.java:55
The documentation for this class was generated from the following file:
- hyphenatechatsdk/src/com/hyphenate/chat/EMImageMessageBody.java