Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 255
DownloadCallback
Haoge edited this page Dec 14, 2017
·
1 revision
在进行APK下载的时候。获取下载进度进行显示。主要用于显示下载进度条
[UpdateConfig.getConfig()/UpdateBuilder.create()]
.setDownloadCallback(callback)
无
此实现类主要用于给用户做轻提示通知。此处的通知不会影响到更新流程
publicclassCallBackimplementsDownloadCallback {
@OverridepublicvoidonUpdateStart() {
// 下载更新包开始
}
@OverridepublicvoidonUpdateComplete(Filefile) {
// 下载更新包完成
}
@OverridepublicvoidonUpdateProgress(longcurrent, longtotal) {
// 下载更新包进度通知
}
@OverridepublicvoidonUpdateError(Throwablet) {
// 下载更新包出错
}
}