|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILastLocationFinder
Interface definition for a Last Location Finder. Classes that implement this interface must provide methods to find the "best" (most accurate and timely) previously detected location using whatever providers are available. Where a timely / accurate previous location is not detected, classes should return the last location and create a one-shot update to find the current location. The one-shot update should be returned via the Location Listener passed in through setChangedLocationListener.
| Field Summary | |
|---|---|
static String |
LAST_LOCATION_TOO_OLD_OR_INACCURATE_EXTRA
|
static String |
LOG_TAG
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel the one-shot current location update. |
android.location.Location |
getLastBestLocation(int minDistance,
long minTime,
boolean passiveRequest)
Find the most accurate and timely previously detected location using all the location providers. |
void |
retrieveSingleLocationUpdate()
Retrieve a one-shot location update. |
| Field Detail |
|---|
static final String LOG_TAG
static final String LAST_LOCATION_TOO_OLD_OR_INACCURATE_EXTRA
| Method Detail |
|---|
android.location.Location getLastBestLocation(int minDistance,
long minTime,
boolean passiveRequest)
LocationListener
passed in through setChangedLocationListener
minDistance - Minimum distance before we require a location update.minTime - Minimum time required between location updates.passiveRequest - The method is invoked from a passive location updater.
void cancel()
void retrieveSingleLocationUpdate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||