hyphenate_SDK3.0 4.0.0
hyphenate java IM SDK
Public Member Functions | Static Public Attributes | List of all members
com.hyphenate.chat.EMLocationMessageBody Class Reference
Inheritance diagram for com.hyphenate.chat.EMLocationMessageBody:
com.hyphenate.chat.EMMessageBody

Public Member Functions

 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)
 

Static Public Attributes

static final Parcelable.Creator< EMLocationMessageBodyCREATOR
 

Detailed Description

The location message body.

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

Constructor & Destructor Documentation

◆ EMLocationMessageBody()

com.hyphenate.chat.EMLocationMessageBody.EMLocationMessageBody ( 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 com.hyphenate.chat.EMLocationMessageBody.getAddress ( )

Gets the address.

◆ getBuildingName()

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

Gets the building name.

◆ getLatitude()

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

Gets the latitude.

◆ getLongitude()

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

Gets the longitude.

Member Data Documentation

◆ CREATOR

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

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