public interface AppService
| 类型 | 属性和说明 | 
|---|---|
ServiceProperty | 
defaultService
生存一个默认的服务属性 
 | 
| 限定符和类型 | 字段和说明 | 
|---|---|
static String | 
ANALYTICS_SERVICE
统计服务 
 | 
static String | 
CACHE_MANAGER
缓存服务 
 | 
static String | 
CONFIG_SERVICE
应用配置服务 
 | 
static String | 
CRASH_SERVICE
异常监听服务 
 | 
static String | 
DOWNLOAD_MANAGER
下载服务 
 | 
static String | 
LOCATION_SERVICE
位置服务 
 | 
static String | 
OBSERVER_MANAGER
ObserverManager 
 | 
static String | 
ROUTE_SERVICE  | 
static String | 
SESSION_SERVICE
Session服务 
 | 
static String | 
STATUS_SERVICE
状态监听服务 
 | 
static String | 
UPGRADE_SERVICE
更新服务 
 | 
| 限定符和类型 | 方法和说明 | 
|---|---|
ServiceProperty | 
defaultServiceProperty()
生存一个默认的服务属性 
 | 
String | 
getName()
获取应用服务名称 
 | 
ServiceProperty | 
getServiceProperty()
获取应用服务属性 
 | 
void | 
init(ServiceProperty serviceProperty)
初始化应用服务属性 
 | 
void | 
onCreate(Application context)
当创建时 
 | 
void | 
onDestroy()
当销毁时 
 | 
void | 
setDebug(boolean mDebug)
设置debug模式 
 | 
ServiceProperty defaultServiceProperty
void onCreate(Application context)
context - String getName()
void onDestroy()
void setDebug(boolean mDebug)
mDebug - void init(ServiceProperty serviceProperty)
serviceProperty - ServiceProperty getServiceProperty()
ServiceProperty defaultServiceProperty()