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.
|
AsyncResult<String> |
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 AsyncResult<String> publish(GeoLocation geoLocation)
geoLocation - The geo location.public void addGeoLocationListener(Consumer<GeoLocationEvent> geoLocationListener)
geoLocationListener - The listener.removeGeoLocationListener(Consumer)public void removeGeoLocationListener(Consumer<GeoLocationEvent> geoLocationListener)
geoLocationListener - The listener.addGeoLocationListener(Consumer)Copyright © 2014–2017 XMPP.rocks. All rights reserved.