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

The following examples show how to use com.hyphenate.chat.EMMessage#createFileSendMessage() . 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 sendFileMessage(String filePath) {
    EMMessage message = EMMessage.createFileSendMessage(filePath, toChatUsername);
    sendMessage(message);
}
 
Example 2
Source File: EaseChatFragment.java    From Social with Apache License 2.0 4 votes vote down vote up
protected void sendFileMessage(String filePath) {
    EMMessage message = EMMessage.createFileSendMessage(filePath, 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 sendFileMessage(String filePath) {
    EMMessage message = EMMessage.createFileSendMessage(filePath, 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 sendFileMessage(String filePath) {
    EMMessage message = EMMessage.createFileSendMessage(filePath, 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 文件地址
 * @return 文件消息
 */
public EMMessage createFileMessage(EMMessage.ChatType chatType, String conId, String filePath)
{
    EMMessage message = EMMessage.createFileSendMessage(filePath, conId);
    message.setChatType(chatType);
    return message;
}