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

DownloadFileRequestModel能否增加一个下载进度? #1

Open
szoliver opened this issue Aug 8, 2017 · 0 comments
Open

DownloadFileRequestModel能否增加一个下载进度? #1

szoliver opened this issue Aug 8, 2017 · 0 comments

Comments

@szoliver
Copy link

szoliver commented Aug 8, 2017

loadingText满足不了业务场景的需求,反而是多余的。
如果有onRequestProgress事件就更好了!
例如:

DownloadFileRequestModel
                    .newModel()
                    .url(Url)
                    .filePat(fpath)
   .load(new ModelListener<String>() {
    @Override
     public void onSuccess(NetworkResp networkResp, String response){}

     @Override
     public void onError(int errorCode, String message) {}

     @Override
     public void onRequestProgress(long bytesWritten, long contentLength) {}
}
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

1 participant