We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
设置更新的策略。可以根据需要灵活配置更新时的逻辑
[UpdateConfig.getConfig()/UpdateBuilder.create()] .setUpdateStrategy(strategy);
UpdateStrategy : 在WIFI环境下。不显示有更新的弹窗与下载进度条的弹窗通知。下载完成后显示弹窗通知
WifiFirstStrategy
public class Strategy extends UpdateStrategy { @Override public boolean isShowUpdateDialog(Update update) { // 在检查到有更新时,是否显示弹窗通知。 return isShowUpdateDialog; } @Override public boolean isAutoInstall() { // 在下载完成后。是否自动进行安装 return isAutoInstall; } @Override public boolean isShowDownloadDialog() { // 在下载过程中,是否显示下载进度通知 return !isShowDownloadDialog; } }