public static interface PicassoCompat.Builder
Picasso instance.| Modifier and Type | Method and Description |
|---|---|
PicassoCompat |
build()
Create the
Picasso instance. |
PicassoCompat.Builder |
callFactory(Call.Factory factory)
Specify the
Call.Factory that will be used for downloading images. |
PicassoCompat.Builder |
client(OkHttpClient client)
Specify the
OkHttpClient that will be used for downloading images. |
PicassoCompat.Builder |
defaultBitmapConfig(android.graphics.Bitmap.Config bitmapConfig)
Specify the default
Bitmap.Config used when decoding images. |
PicassoCompat.Builder |
executor(java.util.concurrent.ExecutorService executorService)
Specify the executor service for loading images in the background.
|
PicassoCompat.Builder |
indicatorsEnabled(boolean enabled)
Toggle whether to display debug indicators on images.
|
PicassoCompat.Builder |
listener(PicassoCompat.Listener listener)
Specify a listener for interesting events.
|
PicassoCompat.Builder |
loggingEnabled(boolean enabled)
Toggle whether debug logging is enabled.
|
PicassoCompat.Builder defaultBitmapConfig(android.graphics.Bitmap.Config bitmapConfig)
Bitmap.Config used when decoding images. This can be overridden
on a per-request basis using config(..).PicassoCompat.Builder client(OkHttpClient client)
OkHttpClient that will be used for downloading images.PicassoCompat.Builder callFactory(Call.Factory factory)
Call.Factory that will be used for downloading images.PicassoCompat.Builder executor(java.util.concurrent.ExecutorService executorService)
Note: Calling shutdown() will not shutdown supplied executors.
PicassoCompat.Builder listener(PicassoCompat.Listener listener)
PicassoCompat.Builder indicatorsEnabled(boolean enabled)
PicassoCompat.Builder loggingEnabled(boolean enabled)
WARNING: Enabling this will result in excessive object allocation. This should be only
be used for debugging purposes. Do NOT pass BuildConfig.DEBUG.
PicassoCompat build()
Picasso instance.