Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

下载任务可以暂停吗 #35

Closed
ws123 opened this issue Jul 5, 2017 · 1 comment
Closed

下载任务可以暂停吗 #35

ws123 opened this issue Jul 5, 2017 · 1 comment

Comments

@ws123
Copy link

ws123 commented Jul 5, 2017

比如,刚开始下载的时候,是WIFI,后来切换到了4G,需要暂停下载任务,然后,通知用户是否继续下载

@yjfnypeu
Copy link
Collaborator

yjfnypeu commented Jul 5, 2017

框架本身并没有提供此功能。如果你需要使用的话。可以考虑将发起任务的UpdateBuilder类以及更新数据实体类Update做缓存。然后在需要重新下载的时候。通过Updater.downUpdate(update, builder)方法直接重新发起下载请求。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants