public interface StatusService extends AppService
defaultServiceProperty
ANALYTICS_SERVICE, CACHE_MANAGER, CONFIG_SERVICE, CRASH_SERVICE, DOWNLOAD_MANAGER, LOCATION_SERVICE, OBSERVER_MANAGER, ROUTE_SERVICE, SESSION_SERVICE, STATUS_SERVICE, UPGRADE_SERVICE
限定符和类型 | 方法和说明 |
---|---|
boolean |
isCallingState()
是否在呼叫状态
|
boolean |
isConnection()
网络是否连接
|
boolean |
isGPSLocation()
gps定位是否开启
|
boolean |
isNetworkLocation()
network定位是否开启
|
boolean |
isWifiConnection()
Wifi是否连接
|
void |
registerStatusListener(StatusListener statusListener)
注册状态监听
|
void |
unregisterStatusListener(StatusListener statusListener)
移除状态监听
|
defaultServiceProperty, getName, getServiceProperty, init, onCreate, onDestroy, setDebug
boolean isConnection()
boolean isWifiConnection()
boolean isGPSLocation()
boolean isNetworkLocation()
boolean isCallingState()
void registerStatusListener(StatusListener statusListener)
void unregisterStatusListener(StatusListener statusListener)