public interface Target
Objects implementing this class must have a working implementation of
Object.equals(Object)
and Object.hashCode()
for proper storage internally.
Instances of this interface will also be compared to determine if view recycling is occurring.
It is recommended that you add this interface directly on to a custom view type when using in an
adapter to ensure correct recycling behavior.
Modifier and Type | Method and Description |
---|---|
void |
onBitmapFailed(java.lang.Exception e,
android.graphics.drawable.Drawable errorDrawable)
Callback indicating the image could not be successfully loaded.
|
void |
onBitmapLoaded(android.graphics.Bitmap bitmap,
Picasso.LoadedFrom from)
Callback when an image has been successfully loaded.
|
void |
onPrepareLoad(android.graphics.drawable.Drawable placeHolderDrawable)
Callback invoked right before your request is submitted.
|
void onBitmapLoaded(android.graphics.Bitmap bitmap, Picasso.LoadedFrom from)
Note: You must not recycle the bitmap.
void onBitmapFailed(java.lang.Exception e, android.graphics.drawable.Drawable errorDrawable)
Note: The passed Drawable
may be null
if none has been
specified via RequestCreator.error(android.graphics.drawable.Drawable)
or RequestCreator.error(int)
.
void onPrepareLoad(android.graphics.drawable.Drawable placeHolderDrawable)
Note: The passed Drawable
may be null
if none has been
specified via RequestCreator.placeholder(android.graphics.drawable.Drawable)
or RequestCreator.placeholder(int)
.