|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ls.widgets.map.config.GPSConfig
public class GPSConfig
GPSConfig class allows to configure the location aware aspects of the MapWidget. Do not create this class directly. Instead use MapWidget.getGPSConfig() method.
Constructor Summary | |
---|---|
GPSConfig()
|
Method Summary | |
---|---|
MapCalibrationData |
getCalibration()
Returns calibration data for the map. |
int |
getMinDistance()
|
int |
getMinTime()
Returns minimal refresh time in milliseconds. |
boolean |
getPassiveMode()
|
boolean |
isMapCalibrated()
|
void |
setGeoArea(MapCalibrationData geoArea)
Sets the calibration data for the map. |
void |
setGPSUpdateInterval(int minTime,
int minDistance)
Sets the GPS sensor update time interval and distance. |
void |
setPassiveMode(boolean passiveMode)
Tells the map to not use GPS by itself, it will use "passive" location provider in order to display user's position. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GPSConfig()
Method Detail |
---|
public boolean getPassiveMode()
public void setPassiveMode(boolean passiveMode)
passiveMode
- - true if you want the map to work in passive mode, false otherwise.public void setGeoArea(MapCalibrationData geoArea)
geoArea
- - instance of RectGeo class.public void setGPSUpdateInterval(int minTime, int minDistance)
minTime
- the minimum time interval for notifications, in milliseconds. This field is only used as a hint to conserve power, and actual time between location updates may be greater or lesser than this value.minDistance
- the minimum distance interval for notifications, in meterspublic int getMinTime()
public int getMinDistance()
public MapCalibrationData getCalibration()
public boolean isMapCalibrated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |