public class GeolocationFeature extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
GEOLOCATION_LISTEN_ENABLED |
static String |
GEOLOCATION_PUBLISH_ENABLED |
static String |
GEOLOCATION_PUBLISH_PRECISION |
| Constructor and Description |
|---|
GeolocationFeature(JaxmppService service) |
| Modifier and Type | Method and Description |
|---|---|
void |
registerLocationListener() |
void |
registerLocationListenerGingerbread() |
void |
sendCurrentLocation() |
static void |
sendCurrentLocation(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
android.content.Context context) |
void |
unregisterLocationListener() |
static void |
updateGeolocationSettings(android.accounts.Account account,
tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
android.content.Context context)
Method used to update geolocation settings on connected or disconnected
instance of JaxmppCore with proper handling of this situation
|
static void |
updateLocation(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
android.location.Location location,
android.content.Context context) |
void |
updateLocation(android.location.Location location) |
public static final String GEOLOCATION_LISTEN_ENABLED
public static final String GEOLOCATION_PUBLISH_ENABLED
public static final String GEOLOCATION_PUBLISH_PRECISION
public GeolocationFeature(JaxmppService service)
public static void sendCurrentLocation(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
android.content.Context context)
public static void updateGeolocationSettings(android.accounts.Account account,
tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
android.content.Context context)
account - jaxmpp - context - public static void updateLocation(tigase.jaxmpp.core.client.JaxmppCore jaxmpp,
android.location.Location location,
android.content.Context context)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void registerLocationListener()
public void registerLocationListenerGingerbread()
public void sendCurrentLocation()
public void unregisterLocationListener()
public void updateLocation(android.location.Location location)
Copyright © 2019. All rights reserved.