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

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)
Definition: LocationMessageBody.java:50

Constructor & Destructor Documentation

◆ LocationMessageBody()

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

Creates a location message body.

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

Member Function Documentation

◆ getAddress()

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

Gets the address.

◆ getBuildingName()

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

Gets the building name.

◆ getLatitude()

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

Gets the latitude.

◆ getLongitude()

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

Gets the longitude.

Member Data Documentation

◆ CREATOR

final Parcelable.Creator<LocationMessageBody> io.agora.chat.LocationMessageBody.CREATOR
static
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: