Picasso 2的OkHttp 3下载器
jopen
10年前
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>