public interface LocationService extends AppService
defaultServiceProperty| 限定符和类型 | 字段和说明 | 
|---|---|
static String | 
LOCATIONSERVICE_BETTERTIME
最佳定位时间间隔,单位豪秒 
 | 
static String | 
LOCATIONSERVICE_GPS_MINDISTANCE
GPS定位 最小距离间隔,单位米 
 | 
static String | 
LOCATIONSERVICE_GPS_MINTIME
GPS定位 最小时间间隔,单位豪秒 
 | 
static String | 
LOCATIONSERVICE_NETWORK_MINDISTANCE
网络定位 最小位置间,单位米 
 | 
static String | 
LOCATIONSERVICE_NETWORK_MINTIME
网络定位 最小时间间隔,单位豪秒 
 | 
static String | 
LOCATIONSERVICE_TIMEOUT
定位超市时间,单位豪秒 
 | 
ANALYTICS_SERVICE, CACHE_MANAGER, CONFIG_SERVICE, CRASH_SERVICE, DOWNLOAD_MANAGER, LOCATION_SERVICE, OBSERVER_MANAGER, ROUTE_SERVICE, SESSION_SERVICE, STATUS_SERVICE, UPGRADE_SERVICE| 限定符和类型 | 方法和说明 | 
|---|---|
Location | 
getLastKnownLocation()
获取最后记录的位置 
 | 
boolean | 
isBetterLocation(Location mLocation)
判断位置是否是有效地(据当前时间差小于最佳时间better_time) 
 | 
void | 
removeLocationUpdates()
停止位置更新 
 | 
void | 
requestLocationUpdates(Activity activity)
请求位置更新 
 | 
void | 
setBetterLocationListener(BetterLocationListener locationListener)
设置位置更新监听接口 
 | 
defaultServiceProperty, getName, getServiceProperty, init, onCreate, onDestroy, setDebugstatic final String LOCATIONSERVICE_GPS_MINTIME
static final String LOCATIONSERVICE_GPS_MINDISTANCE
static final String LOCATIONSERVICE_NETWORK_MINTIME
void requestLocationUpdates(Activity activity)
void removeLocationUpdates()
Location getLastKnownLocation()
boolean isBetterLocation(Location mLocation)
mLocation - void setBetterLocationListener(BetterLocationListener locationListener)
locationListener -