Chat SDK for Android v1.1.0
agora java chat SDK
Public Member Functions | Static Public Attributes | List of all members Class Reference
Inheritance diagram for

Public Member Functions

 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)

Static Public Attributes

static final Parcelable.Creator< LocationMessageBodyCREATOR

Detailed Description

The location message body.

LocationMessageBody body = new LocationMessageBody(“location”, 30.010378, 104.358878, "建筑物名称");
LocationMessageBody(String address, double latitude, double longitude, String buildingName)

Constructor & Destructor Documentation

◆ LocationMessageBody() ( String  address,
double  latitude,
double  longitude,
String  buildingName 

Creates a location message body.

addressThe address.
latitudeThe latitude.
longitudeThe longitude.
buildingNameThe building name.

Member Function Documentation

◆ getAddress()

String ( )

Gets the address.

◆ getBuildingName()

String ( )

Gets the building name.

◆ getLatitude()

double ( )

Gets the latitude.

◆ getLongitude()

double ( )

Gets the longitude.

Member Data Documentation


final Parcelable.Creator<LocationMessageBody>
Initial value:
= new Parcelable.Creator<LocationMessageBody>() {
public LocationMessageBody createFromParcel(Parcel in) {
return new LocationMessageBody(in);
public LocationMessageBody[] newArray(int size) {
return new LocationMessageBody[size];

The documentation for this class was generated from the following file: