We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
No description provided.
The text was updated successfully, but these errors were encountered:
Rxjava2 可能需要一些时间学习新的内容,应该会加入的,并且Rxjava1与Rxjava2可以共存。 另外你指的Retrofit的下载是指什么意思呢?
Rxjava2
Rxjava1
Sorry, something went wrong.
retrofit的下载方式 ~ 我觉得 你这个demo可以多一点注释 让我这个新手能手多学习一点知识
retrofit 下载文件
是希望这个Demo增加使用Retrofit2下载演示是吧? 因为按我的理解的话使用Retrofit2下载文件和其它是类似的,比如是server_address/foo.zip这样的可以在注解写这个地址,然后类型是Bytes类似的。针对如{message:xxx, content:downloadaddress }这种返回形式,这里取出downloadaddress后再下载就可以。 例如
Retrofit2
server_address/foo.zip
downloadaddress
@GET("/resource/example.zip") Call<ResponseBody> downloadFileWithFixedUrl();
另外大文件用@streaming,下载功能应该是Retrofit2已经实现的功能。 相关具体内容可看这个文章 http://www.jianshu.com/p/92bb85fc07e8 还有一个使用Retrofit2下载的库https://github.com/lingochamp/FileDownloader
目前还有一些事情,另外学习Rxjava2还需求些时间,等我学习完了就添加这些。
您改的时候希望能够多点注释
ysmintor
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: