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

The following examples show how to use com.hyphenate.chat.EMMessage#createLocationSendMessage() . 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 sendLocationMessage(double latitude, double longitude, String locationAddress) {
    EMMessage message = EMMessage.createLocationSendMessage(latitude, longitude, locationAddress, toChatUsername);
    sendMessage(message);
}
 
Example 2
Source File: EaseChatFragment.java    From Social with Apache License 2.0 4 votes vote down vote up
protected void sendLocationMessage(double latitude, double longitude, String locationAddress) {
    EMMessage message = EMMessage.createLocationSendMessage(latitude, longitude, locationAddress, 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 sendLocationMessage(double latitude, double longitude, String locationAddress) {
    EMMessage message = EMMessage.createLocationSendMessage(latitude, longitude, locationAddress, 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 sendLocationMessage(double latitude, double longitude, String locationAddress) {
    EMMessage message = EMMessage.createLocationSendMessage(latitude, longitude, locationAddress, 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 latitude        纬度
 * @param longitude       经度
 * @param locationAddress 地址
 * @return 位置消息
 */
public EMMessage createLocationMessage(EMMessage.ChatType chatType, String conId, long latitude, long longitude, String locationAddress)
{
    EMMessage message = EMMessage.createLocationSendMessage(latitude, longitude, locationAddress, conId);
    message.setChatType(EMMessage.ChatType.GroupChat);
    return message;
}