hyphenate_SDK3.0  3.8.1
hyphenatejavaIMSDK
Public 成员函数 | 静态 Public 属性 | 所有成员列表
com.hyphenate.chat.EMLocationMessageBody类 参考
类 com.hyphenate.chat.EMLocationMessageBody 继承关系图:
com.hyphenate.chat.EMMessageBody com.hyphenate.chat.EMBase< EMAMessageBody >

Public 成员函数

 EMLocationMessageBody (String address, double latitude, double longitude)
 
 EMLocationMessageBody (EMALocationMessageBody body)
 
String getAddress ()
 
double getLatitude ()
 
double getLongitude ()
 
String toString ()
 
int describeContents ()
 
void writeToParcel (Parcel dest, int flags)
 
- Public 成员函数 继承自 com.hyphenate.chat.EMBase< EMAMessageBody >
boolean equals (Object o)
 
int hashCode ()
 

静态 Public 属性

static final Parcelable.Creator< EMLocationMessageBodyCREATOR
 

额外继承的成员函数

- Protected 属性 继承自 com.hyphenate.chat.EMBase< EMAMessageBody >
emaObject
 

详细描述

位置信息消息

EMLocationMessageBody body = new EMLocationMessageBody(“地址”, 30.010378, 104.358878);
版本
3.0

构造及析构函数说明

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

创建一个位置信息

参数
address地址
latitude纬度
longitude经度

成员函数说明

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

获取地址

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

获取纬度

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

获取经度

类成员变量说明

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];
}
}

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