public abstract class LocationEngine
extends java.lang.Object
FusionEngine and
MockEngine classes.| Modifier and Type | Class and Description |
|---|---|
static interface |
LocationEngine.Callback |
| Constructor and Description |
|---|
LocationEngine(android.content.Context context,
LocationEngine.Callback callback) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequest(LocationRequest request)
Enables the engine on receiving a valid location request.
|
protected LocationAvailability |
createLocationAvailability() |
protected abstract void |
disable()
Subclass should perform all operations required to disable the engine.
|
protected abstract void |
enable()
Subclass should perform all operations required to enable the engine.
|
protected LocationEngine.Callback |
getCallback() |
protected android.content.Context |
getContext() |
abstract android.location.Location |
getLastLocation()
Return most best recent location available.
|
protected android.os.Looper |
getLooper() |
protected LocationRequestUnbundled |
getRequest() |
abstract boolean |
isProviderEnabled(java.lang.String provider) |
void |
removeAllRequests() |
void |
removeRequests(java.util.List<LocationRequest> requests)
Disables the engine when no requests remain, otherwise updates the engine's configuration.
|
public LocationEngine(android.content.Context context,
LocationEngine.Callback callback)
public abstract android.location.Location getLastLocation()
public abstract boolean isProviderEnabled(java.lang.String provider)
public void addRequest(LocationRequest request)
request - Valid location request to enable.public void removeRequests(java.util.List<LocationRequest> requests)
requests - Valid location request to enable.public void removeAllRequests()
protected abstract void enable()
protected abstract void disable()
protected android.content.Context getContext()
protected android.os.Looper getLooper()
protected LocationEngine.Callback getCallback()
protected LocationRequestUnbundled getRequest()
protected LocationAvailability createLocationAvailability()