public class VehicleLocationProvider extends java.lang.Object implements Measurement.Listener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INSUFFICIENT_PRIVILEGES_MAKE_SURE_MOCK_LOCATIONS |
static java.lang.String |
TAG |
static java.lang.String |
UNABLE_TO_USE_MOCKED_LOCATIONS |
static java.lang.String |
VEHICLE_LOCATION_PROVIDER |
Constructor and Description |
---|
VehicleLocationProvider(android.content.Context context,
VehicleManager vehicleManager) |
Modifier and Type | Method and Description |
---|---|
void |
receive(Measurement measurement) |
void |
setOverwritingStatus(boolean enabled)
Enable or disable overwriting Android's native GPS values with those from
the vehicle.
|
void |
stop() |
java.lang.String |
toString() |
public static final java.lang.String TAG
public static final java.lang.String VEHICLE_LOCATION_PROVIDER
public static final java.lang.String UNABLE_TO_USE_MOCKED_LOCATIONS
public static final java.lang.String INSUFFICIENT_PRIVILEGES_MAKE_SURE_MOCK_LOCATIONS
public VehicleLocationProvider(android.content.Context context, VehicleManager vehicleManager)
public void stop()
public void receive(Measurement measurement)
receive
in interface Measurement.Listener
public void setOverwritingStatus(boolean enabled)
public java.lang.String toString()
toString
in class java.lang.Object