Java Code Examples for com.hyphenate.chat.EMMessage#createImageSendMessage()

The following examples show how to use com.hyphenate.chat.EMMessage#createImageSendMessage() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MyEaseChatFragment.java    From Social with Apache License 2.0 4 votes vote down vote up
protected void sendImageMessage(String imagePath) {
    EMMessage message = EMMessage.createImageSendMessage(imagePath, false, toChatUsername);
    sendMessage(message);
}
 
Example 2
Source File: EaseChatFragment.java    From Social with Apache License 2.0 4 votes vote down vote up
protected void sendImageMessage(String imagePath) {
    EMMessage message = EMMessage.createImageSendMessage(imagePath, false, toChatUsername);
    sendMessage(message);
}
 
Example 3
Source File: EaseChatFragment.java    From Study_Android_Demo with Apache License 2.0 4 votes vote down vote up
protected void sendImageMessage(String imagePath) {
    EMMessage message = EMMessage.createImageSendMessage(imagePath, false, toChatUsername);
    sendMessage(message);
}
 
Example 4
Source File: EaseChatFragment.java    From nono-android with GNU General Public License v3.0 4 votes vote down vote up
protected void sendImageMessage(String imagePath) {
    EMMessage message = EMMessage.createImageSendMessage(imagePath, false, toChatUsername);
    sendMessage(message);
}
 
Example 5
Source File: HxChatHelper.java    From FamilyChat with Apache License 2.0 3 votes vote down vote up
/**
 * 创建图片消息
 *
 * @param chatType      聊天类型
 * @param conId         会话id
 * @param filePath      图片文件地址
 * @param sendOriginPic 是否发送原图【false为不发送,超过100K会被压缩发送】
 * @return 图片消息
 */
public EMMessage createImageMessage(EMMessage.ChatType chatType, String conId, String filePath, boolean sendOriginPic)
{
    EMMessage message = EMMessage.createImageSendMessage(filePath, sendOriginPic, conId);
    message.setChatType(chatType);
    return message;
}