agora_chat_SDK 1.0.6
agora java chat SDK
Public 成员函数 | 静态 Public 属性 | 所有成员列表
io.agora.chat.LocationMessageBody类 参考
类 io.agora.chat.LocationMessageBody 继承关系图:
io.agora.chat.MessageBody

Public 成员函数

 LocationMessageBody (String address, double latitude, double longitude, String buildingName)
 
 LocationMessageBody (String address, double latitude, double longitude)
 
 LocationMessageBody (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< LocationMessageBodyCREATOR
 

详细描述

位置信息消息体。

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

构造及析构函数说明

◆ LocationMessageBody()

io.agora.chat.LocationMessageBody.LocationMessageBody ( String  address,
double  latitude,
double  longitude,
String  buildingName 
)

创建一个位置信息体。

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

成员函数说明

◆ getAddress()

String io.agora.chat.LocationMessageBody.getAddress ( )

获取地址。

◆ getBuildingName()

String io.agora.chat.LocationMessageBody.getBuildingName ( )

获取建筑物名称。

◆ getLatitude()

double io.agora.chat.LocationMessageBody.getLatitude ( )

获取纬度。

◆ getLongitude()

double io.agora.chat.LocationMessageBody.getLongitude ( )

获取经度。

类成员变量说明

◆ CREATOR

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

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