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 |
|---|---|
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 LocationRequestUnbundled |
getRequest() |
abstract boolean |
isProviderEnabled(java.lang.String provider) |
void |
setRequest(LocationRequest request)
Enables the engine on receiving a valid location request.
|
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 setRequest(LocationRequest request)
null request.request - Valid location request to enable or null to disable.protected abstract void enable()
protected abstract void disable()
protected android.content.Context getContext()
protected LocationEngine.Callback getCallback()
protected LocationRequestUnbundled getRequest()
protected LocationAvailability createLocationAvailability()