Picasso 2的OkHttp 3下載器

Picasso 2 OkHttp 3 Downloader

一個OkHttp 3下載器,實現用于Picasso 2。

Usage

Create an OkHttp3Downloader instance wrapping your OkHttpClient or Call.Factory and pass it to downloader.

OkHttpClient client = // ...
Picasso picasso = new Picasso.Builder()
    .downloader(new OkHttp3Downloader(client))
    .build()

You can also use the the other constructors for a default OkHttpClient instance.

Download

Gradle:

compile 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.0.1'

or Maven:

<dependency>
  <groupId>com.jakewharton.picasso</groupId>
  <artifactId>picasso2-okhttp3-downloader</artifactId>
  <version>1.0.1</version>
</dependency>
項目地址: https://github.com/JakeWharton/picasso2-okhttp3-downloader

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!