hyphenate_SDK3.0 3.9.9.2
hyphenate java IM SDK
Public 成员函数 | 静态 Public 属性 | 所有成员列表
com.hyphenate.chat.EMLocationMessageBody类 参考
类 com.hyphenate.chat.EMLocationMessageBody 继承关系图:
com.hyphenate.chat.EMMessageBody

Public 成员函数

 EMLocationMessageBody (String address, double latitude, double longitude, String buildingName)
 
 EMLocationMessageBody (String address, double latitude, double longitude)
 
 EMLocationMessageBody (EMALocationMessageBody body)
 
String getAddress ()
 
double getLatitude ()
 
double getLongitude ()
 
String getBuildingName ()
 
String toString ()
 
int describeContents ()
 
void writeToParcel (Parcel dest, int flags)
 

静态 Public 属性

static final Parcelable.Creator< EMLocationMessageBodyCREATOR
 

详细描述

位置信息消息体。

EMLocationMessageBody body = new EMLocationMessageBody(“地址”, 30.010378, 104.358878,"建筑物名称");
EMLocationMessageBody(String address, double latitude, double longitude, String buildingName)
Definition: EMLocationMessageBody.java:50

构造及析构函数说明

◆ EMLocationMessageBody()

com.hyphenate.chat.EMLocationMessageBody.EMLocationMessageBody ( String  address,
double  latitude,
double  longitude,
String  buildingName 
)

创建一个位置信息体。

参数
address地址。
latitude纬度。
longitude经度。
buildingName建筑物名称。

成员函数说明

◆ getAddress()

String com.hyphenate.chat.EMLocationMessageBody.getAddress ( )

获取地址。

◆ getBuildingName()

String com.hyphenate.chat.EMLocationMessageBody.getBuildingName ( )

获取建筑物名称。

◆ getLatitude()

double com.hyphenate.chat.EMLocationMessageBody.getLatitude ( )

获取纬度。

◆ getLongitude()

double com.hyphenate.chat.EMLocationMessageBody.getLongitude ( )

获取经度。

类成员变量说明

◆ CREATOR

final Parcelable.Creator<EMLocationMessageBody> com.hyphenate.chat.EMLocationMessageBody.CREATOR
static
初始值:
= new Parcelable.Creator<EMLocationMessageBody>() {
public EMLocationMessageBody createFromParcel(Parcel in) {
return new EMLocationMessageBody(in);
}
public EMLocationMessageBody[] newArray(int size) {
return new EMLocationMessageBody[size];
}
}

该类的文档由以下文件生成: