毕加索和OkHttp [英] Picasso and OkHttp

查看:171
本文介绍了毕加索和OkHttp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关事情,我不明白一个问题:

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

确实毕加索使用 OkHttp 为默认下载器,还是应该由我自己配置​​?

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

和 - 如果不是 - 我为什么要使用毕加索 OkHttp ?什么是相对于默认的优势毕加索

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

感谢。

(我目前使用毕加索v.2.5.2

推荐答案

如果OkHttp是在你的项目中可用,毕加索将使用它。如果没有,毕加索将回落到 HttpURLConnection类

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

这篇关于毕加索和OkHttp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆