java.lang.Object | |
↳ | com.gsma.services.rcs.Geoloc |
Geolocation class
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Geoloc(String label, double latitude, double longitude, long expiration, float accuracy)
Constructor
| |||||||||||
Geoloc(String geoloc)
Constructor: returns a Geoloc instance as parsed from the GEOLOC field in the
GeolocSharingLog provider or the CONTENT field of a GelocMessage in the ChatLog.Message
provider.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
float |
getAccuracy()
Returns the accuracy
| ||||||||||
long |
getExpiration()
Returns the expiration date of the geoloc.
| ||||||||||
String |
getLabel()
Returns the label.
| ||||||||||
double |
getLatitude()
Returns the latitude.
| ||||||||||
double |
getLongitude()
Returns the longitude.
| ||||||||||
String |
toString()
Returns the geoloc in provider format.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Constructor
label | Label |
---|---|
latitude | Latitude |
longitude | Longitude |
expiration | Expiration date |
accuracy | Accuracy |
Constructor: returns a Geoloc instance as parsed from the GEOLOC field in the GeolocSharingLog provider or the CONTENT field of a GelocMessage in the ChatLog.Message provider.
geoloc | Provider geoloc format |
---|
Returns the accuracy
Returns the expiration date of the geoloc.