Picasso and OkHttp

时光总嘲笑我的痴心妄想 提交于 2019-12-24 16:15:24

问题


A question about a thing that I don't understand:

does Picasso use OkHttp as default downloader, or should I configure it by myself?

And - if not - why should I use Picasso with OkHttp? What are the advantages compared to the default Picasso?

Thanks.

(currently I'm using Picasso v.2.5.2)


回答1:


If OkHttp is available in your project, Picasso will use it. If not, Picasso will fall back to HttpUrlConnection.



来源:https://stackoverflow.com/questions/32143949/picasso-and-okhttp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!