public class MockEngine extends LocationEngine
LocationEngine.Callback| Modifier and Type | Field and Description |
|---|---|
static String |
MOCK_PROVIDER |
static String |
TAG_LAT |
static String |
TAG_LNG |
static String |
TAG_SPEED |
static String |
TAG_TRACK_POINT |
| Constructor and Description |
|---|
MockEngine(android.content.Context context,
LocationEngine.Callback callback) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
disable()
Subclass should perform all operations required to disable the engine.
|
protected void |
enable()
Subclass should perform all operations required to enable the engine.
|
android.location.Location |
getLastLocation()
Return most best recent location available.
|
void |
setLocation(android.location.Location location) |
void |
setTrace(File file)
Set a GPX trace file to be replayed as mock locations.
|
getCallback, getContext, getRequest, setRequestpublic static final String MOCK_PROVIDER
public static final String TAG_TRACK_POINT
public static final String TAG_SPEED
public static final String TAG_LAT
public static final String TAG_LNG
public MockEngine(android.content.Context context,
LocationEngine.Callback callback)
public android.location.Location getLastLocation()
LocationEnginegetLastLocation in class LocationEngineprotected void enable()
LocationEngineenable in class LocationEngineprotected void disable()
LocationEnginedisable in class LocationEnginepublic void setLocation(android.location.Location location)
public void setTrace(File file)
Copyright © 2015 Mapzen. All Rights Reserved.