public final class GeoLocationManager extends Manager
Manages the publishing of user location and the notification of it.
| Modifier and Type | Method and Description |
|---|---|
void |
addGeoLocationListener(java.util.function.Consumer<GeoLocationEvent> geoLocationListener)
Adds a listener, which allows to listen for geo location changes.
|
AsyncResult<java.lang.String> |
publish(GeoLocation geoLocation)
Publishes a geo location to the personal eventing service.
|
void |
removeGeoLocationListener(java.util.function.Consumer<GeoLocationEvent> geoLocationListener)
Removes a previously added geo location listener.
|
isEnabled, setEnabledpublic AsyncResult<java.lang.String> publish(GeoLocation geoLocation)
Publishes a geo location to the personal eventing service.
geoLocation - The geo location.public void addGeoLocationListener(java.util.function.Consumer<GeoLocationEvent> geoLocationListener)
Adds a listener, which allows to listen for geo location changes.
geoLocationListener - The listener.removeGeoLocationListener(Consumer)public void removeGeoLocationListener(java.util.function.Consumer<GeoLocationEvent> geoLocationListener)
Removes a previously added geo location listener.
geoLocationListener - The listener.addGeoLocationListener(Consumer)Copyright © 2014–2019 XMPP.rocks. All rights reserved.