public abstract class LocationEngine extends 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 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 LocationRequest |
getRequest() |
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 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 LocationRequest getRequest()
Copyright © 2015 Mapzen. All Rights Reserved.