public final class GeoLocationManager extends Manager
| Modifier and Type | Method and Description |
|---|---|
void |
addGeoLocationListener(Consumer<GeoLocationEvent> geoLocationListener)
Adds a listener, which allows to listen for geo location changes.
|
void |
publish(GeoLocation geoLocation)
Publishes a geo location to the personal eventing service.
|
void |
removeGeoLocationListener(Consumer<GeoLocationEvent> geoLocationListener)
Removes a previously added geo location listener.
|
isEnabled, setEnabledpublic void publish(GeoLocation geoLocation) throws XmppException
geoLocation - The geo location.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionpublic void addGeoLocationListener(Consumer<GeoLocationEvent> geoLocationListener)
geoLocationListener - The listener.removeGeoLocationListener(Consumer)public void removeGeoLocationListener(Consumer<GeoLocationEvent> geoLocationListener)
geoLocationListener - The listener.addGeoLocationListener(Consumer)Copyright © 2014–2015 XMPP.rocks. All rights reserved.