public interface PicassoCompat
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PicassoCompat.Builder
Start building a new
Picasso instance. |
static interface |
PicassoCompat.Listener
Callbacks for Picasso events.
|
static class |
PicassoCompat.LoadedFrom
Describes where the image was loaded from.
|
static class |
PicassoCompat.Priority
The priority of a request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelRequest(android.widget.ImageView view)
Cancel any existing requests for the specified target
ImageView. |
void |
cancelRequest(TargetCompat targetCompat)
Cancel any existing requests for the specified
TargetCompat instance. |
void |
cancelTag(java.lang.Object tag)
Cancel any existing requests with given tag.
|
boolean |
getIndicatorsEnabled()
true if debug indicators should are displayed on images. |
void |
invalidate(java.io.File file)
Invalidate all memory cached images for the specified
file. |
void |
invalidate(java.lang.String path)
Invalidate all memory cached images for the specified
path. |
void |
invalidate(android.net.Uri uri)
Invalidate all memory cached images for the specified
uri. |
boolean |
isLoggingEnabled()
true if debug logging is enabled. |
RequestCreatorCompat |
load(java.io.File file)
Start an image request using the specified image file.
|
RequestCreatorCompat |
load(int resourceId)
Start an image request using the specified drawable resource ID.
|
RequestCreatorCompat |
load(java.lang.String path)
Start an image request using the specified path.
|
RequestCreatorCompat |
load(android.net.Uri uri)
Start an image request using the specified URI.
|
void |
pauseTag(java.lang.Object tag)
Pause existing requests with the given tag.
|
void |
resumeTag(java.lang.Object tag)
Resume paused requests with the given tag.
|
void |
setIndicatorsEnabled(boolean enabled)
Toggle whether to display debug indicators on images.
|
void |
setLoggingEnabled(boolean enabled)
Toggle whether debug logging is enabled.
|
void |
shutdown()
Stops this instance from accepting further requests.
|
void cancelRequest(android.widget.ImageView view)
ImageView.void cancelRequest(TargetCompat targetCompat)
TargetCompat instance.void cancelTag(java.lang.Object tag)
RequestCreatorCompat.tag(Object).RequestCreatorCompat.tag(Object)void pauseTag(java.lang.Object tag)
resumeTag(Object)
to resume requests with the given tag.void resumeTag(java.lang.Object tag)
pauseTag(Object)
to pause requests with the given tag.pauseTag(Object),
RequestCreatorCompat.tag(Object)RequestCreatorCompat load(android.net.Uri uri)
Passing null as a uri will not trigger any request but will set a placeholder,
if one is specified.
load(File),
load(String),
load(int)RequestCreatorCompat load(java.lang.String path)
load(Uri).
This path may be a remote URL, file resource (prefixed with file:), content resource
(prefixed with content:), or android resource (prefixed with android.resource:.
Passing null as a path will not trigger any request but will set a
placeholder, if one is specified.
java.lang.IllegalArgumentException - if path is empty or blank string.load(Uri),
load(File),
load(int)RequestCreatorCompat load(java.io.File file)
load(Uri).
Passing null as a file will not trigger any request but will set a
placeholder, if one is specified.
Equivalent to calling load(Uri.fromFile(file)).
load(Uri),
load(String),
load(int)RequestCreatorCompat load(int resourceId)
load(Uri),
load(String),
load(File)void invalidate(android.net.Uri uri)
uri.invalidate(String),
invalidate(File)void invalidate(java.lang.String path)
path. You can also pass a
stable key.invalidate(Uri),
invalidate(File)void invalidate(java.io.File file)
file.invalidate(Uri),
invalidate(String)void setIndicatorsEnabled(boolean enabled)
boolean getIndicatorsEnabled()
true if debug indicators should are displayed on images.void setLoggingEnabled(boolean enabled)
WARNING: Enabling this will result in excessive object allocation. This should be only
be used for debugging Picasso behavior. Do NOT pass BuildConfig.DEBUG.
boolean isLoggingEnabled()
true if debug logging is enabled.void shutdown()