com.github.ignition.location.templates
Class IgnitedAbstractLastLocationFinder
java.lang.Object
   com.github.ignition.location.templates.IgnitedAbstractLastLocationFinder
com.github.ignition.location.templates.IgnitedAbstractLastLocationFinder
- All Implemented Interfaces: 
- ILastLocationFinder
- Direct Known Subclasses: 
- IgnitedGingerbreadLastLocationFinder, IgnitedLegacyLastLocationFinder
- public abstract class IgnitedAbstractLastLocationFinder 
- extends Object- implements ILastLocationFinder
 
 
 
| Method Summary | 
|  android.location.Location | getLastBestLocation(int minDistance,
                    long minTime,
                    boolean isPassiveRequest)Find the most accurate and timely previously detected location using all the location
 providers.
 | 
|  void | setCurrentLocation(android.location.Location currentLocation)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
context
protected android.content.Context context
locationManager
protected android.location.LocationManager locationManager
criteria
protected android.location.Criteria criteria
currentLocation
protected android.location.Location currentLocation
IgnitedAbstractLastLocationFinder
public IgnitedAbstractLastLocationFinder(android.content.Context context)
getLastBestLocation
public android.location.Location getLastBestLocation(int minDistance,
                                                     long minTime,
                                                     boolean isPassiveRequest)
- Find the most accurate and timely previously detected location using all the location
 providers. Where the last result is beyond the acceptable maximum distance or latency create
 a one-shot update of the current location to be returned using the LocationListenerpassed in throughsetChangedLocationListener
 
- 
- Specified by:
- getLastBestLocationin interface- ILastLocationFinder
 
- 
- Parameters:
- minDistance- Minimum distance before we require a location update.
- minTime- Minimum time required between location updates.
- isPassiveRequest- The method is invoked from a passive location updater.
- Returns:
- The most accurate and / or timely previously detected location.
 
setCurrentLocation
public void setCurrentLocation(android.location.Location currentLocation)
- 
 
- 
 
Copyright © 2012. All Rights Reserved.