public class LocationService
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
LocationService.LocationChangeListener
Used for receiving notifications from the LocationService when the location has changed.
|
static interface |
LocationService.LocationStateListener |
| Constructor and Description |
|---|
LocationService(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLocationChangeListener(LocationService.LocationChangeListener listener) |
void |
getCurrentLocation(LocationService.LocationChangeListener oneTimeListener) |
static LocationService |
getInstance()
returns sInstance of Location tracker
|
static void |
init(LocationServiceConfiguration configuration) |
boolean |
isGpsEnabled() |
boolean |
isLocationEnabled() |
void |
removeLocationChangeListener(LocationService.LocationChangeListener listener) |
void |
setLocationStateListener(LocationService.LocationStateListener locationStateListener) |
void |
start() |
void |
stop() |
public static void init(LocationServiceConfiguration configuration)
public static LocationService getInstance()
public void setLocationStateListener(LocationService.LocationStateListener locationStateListener)
public void start()
public void stop()
public void addLocationChangeListener(LocationService.LocationChangeListener listener)
public void removeLocationChangeListener(LocationService.LocationChangeListener listener)
public boolean isGpsEnabled()
public boolean isLocationEnabled()
public void getCurrentLocation(LocationService.LocationChangeListener oneTimeListener)