public class TXZUpgradeManager
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
TXZUpgradeManager.ApkInstaller
Apk应用安装器
|
static interface |
TXZUpgradeManager.NotificationTool
通知栏工具
|
static interface |
TXZUpgradeManager.UpgradeDialogTool
自定义升级提示对话框
注意:
由于升级任务是以队列的形式逐一处理,为了防止队列阻塞,在触发showConfirmDialog后,需要在一定时间内回调DialogListener,否则判断为超时(默认1分钟)
|
限定符和类型 | 方法和说明 |
---|---|
static TXZUpgradeManager |
getInstance()
获取单例
|
void |
setApkInstaller(TXZUpgradeManager.ApkInstaller apkInstaller)
自定义安装器
|
void |
setDeleteApkAfterInstall(boolean bDelete)
设置是否在安装后清除Apk文件,默认true
|
void |
setNotificationTool(TXZUpgradeManager.NotificationTool notificationTool)
自定义通知栏工具
|
void |
setUpgradeDialogTool(TXZUpgradeManager.UpgradeDialogTool dialogTool)
自定义升级提示对话框
|
public static TXZUpgradeManager getInstance()
public void setDeleteApkAfterInstall(boolean bDelete)
bDelete
- 是否清除public void setUpgradeDialogTool(TXZUpgradeManager.UpgradeDialogTool dialogTool)
public void setNotificationTool(TXZUpgradeManager.NotificationTool notificationTool)
public void setApkInstaller(TXZUpgradeManager.ApkInstaller apkInstaller)