|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OperationSetGeolocation
This interface is an extension of the operation set, meant to be implemented by protocols that support exchange of geolocation details (like Jabber for example).
| Field Summary | |
|---|---|
static String |
ALT
The name of the geolocation map key corresponding to the altitude in meters above or below sea level (e.g. |
static String |
AREA
The name of the geolocation map key that we use for storing named areas such as a campus or neighborhood (e.g. |
static String |
BEARING
The name of the geolocation map key that we use for storing GPS bearing (direction in which the entity is heading to reach its next waypoint), measured in decimal degrees relative to true north. |
static String |
BUILDING
The name of the geolocation map key that we use for indicating a specific building on a street or in an area (e.g. |
static String |
COUNTRY
The name of the geolocation map key that we use for indicating the nation where the user is located (e.g. |
static String |
DATUM
GPS datum. |
static String |
DESCRIPTION
The name of the geolocation map key that we use for storing a natural-language name for or description of a given location (e.g. |
static String |
ERROR
The name of the geolocation map key that we use for storing horizontal GPS errors in arc minutes (e.g. |
static String |
FLOOR
The name of the geolocation map key that we use for storing a particular floor in a building (e.g. |
static String |
LAT
The name of the geolocation map key that we use for storing geographic latitude in decimal degrees North (e.g. |
static String |
LOCALITY
The name of the geolocation map key that we use for indicating a locality within the administrative region, such as a town or city (e.g. |
static String |
LON
The name of the geolocation map key that we use for indicating longitude in decimal degrees East (e.g. |
static String |
POSTALCODE
The name of the geolocation map key that we use for storing post codes (or any code used for postal delivery) (e.g. |
static String |
REGION
The name of the geolocation map key that we use for indicating an administrative region of the nation, such as a state or province (e.g. |
static String |
ROOM
The name of the geolocation map key that we use for indicating a particular room in a building (e.g. |
static String |
STREET
The name of the geolocation map key that we use for storing a thoroughfare within a locality, or a crossing of two thoroughfares (e.g. |
static String |
TEXT
The name of the geolocation map key that we use to indicate a catch-all element that captures any other information about the location (e.g. |
static String |
TIMESTAMP
The name of the geolocation map key that we use to indicate UTC timestamp specifying the moment when the reading was taken (e.g. |
| Method Summary | |
|---|---|
void |
addGeolocationListener(GeolocationListener listener)
Registers a listener that would get notifications any time a contact publishes a new geolocation. |
void |
publishGeolocation(Map<String,String> geolocation)
Publish the location contained in the geolocation map to all contacts in our contact list. |
Map<String,String> |
queryContactGeolocation(String contactIdentifier)
Retrieve the geolocation of the contact corresponding to contactIdentifier. |
void |
removeGeolocationListener(GeolocationListener listener)
Removes a listener previously registered for notifications of changes in the contact geolocation details. |
| Field Detail |
|---|
static final String ALT
static final String AREA
static final String BEARING
static final String BUILDING
static final String COUNTRY
static final String DATUM
static final String DESCRIPTION
static final String ERROR
static final String FLOOR
static final String LAT
static final String LOCALITY
static final String LON
static final String POSTALCODE
static final String REGION
static final String ROOM
static final String STREET
static final String TEXT
static final String TIMESTAMP
| Method Detail |
|---|
void publishGeolocation(Map<String,String> geolocation)
geolocation - a java.uil.Map containing the geolocation
details of the position we'd like to publish.Map<String,String> queryContactGeolocation(String contactIdentifier)
contactIdentifier - the address of the Contact whose
geolocation details we'd like to retrieve.
void addGeolocationListener(GeolocationListener listener)
listener - the GeolocationListener to registervoid removeGeolocationListener(GeolocationListener listener)
listener - the GeolocationListener to unregister
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||