Chat SDK for Android v1.2.1
agora java chat SDK
Public Member Functions | 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)
 
String getAddress ()
 
double getLatitude ()
 
double getLongitude ()
 
String getBuildingName ()
 
- Public Member Functions inherited from io.agora.chat.MessageBody
long operationTime ()
 
String operatorId ()
 
int operationCount ()
 

Detailed Description

The location message body.

LocationMessageBody body = new LocationMessageBody(“location”, 30.010378, 104.358878, "building name");
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.


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