public interface UpgradeService 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
限定符和类型 | 方法和说明 |
---|---|
void |
cancel(String filename)
取消更新
|
void |
setOnUpgradeListener(String filename,
OnUpgradeListener upgradeListener)
设置更新监听接口
|
void |
upgrade(String filename,
String url,
boolean notification)
更新资源
|
void |
upgrade(String filename,
String url,
boolean notification,
boolean install)
更新资源
|
void |
upgrade(String filename,
String url,
boolean notification,
boolean install,
boolean safe)
更新资源
|
defaultServiceProperty, getName, getServiceProperty, init, onCreate, onDestroy, setDebug
void upgrade(String filename, String url, boolean notification)
filename
- 文件名 包含后缀,且是唯一的url
- 下载地址notification
- 是否通知栏显示void upgrade(String filename, String url, boolean notification, boolean install)
filename
- 文件名 包含后缀,且是唯一的url
- 下载地址notification
- 是否通知栏显示install
- 是否安装void upgrade(String filename, String url, boolean notification, boolean install, boolean safe)
filename
- 文件名 包含后缀,且是唯一的url
- 下载地址notification
- 是否通知栏显示install
- 是否安装safe
- 是否安全void cancel(String filename)
filename
- 文件名 包含后缀,且是唯一的void setOnUpgradeListener(String filename, OnUpgradeListener upgradeListener)
filename
- 文件名 包含后缀,且是唯一的upgradeListener
-