public static interface ImageMemoryCache.OnImageCallbackListener
Modifier and Type | Method and Description |
---|---|
void |
onGetFailed(java.lang.String imageUrl,
Bitmap loadedImage,
View view,
FailedReason failedReason)
callback function after get image failed, run on ui thread
|
void |
onGetNotInCache(java.lang.String imageUrl,
View view)
callback function when get image but image not in cache, run on ui thread.
|
void |
onGetSuccess(java.lang.String imageUrl,
Bitmap loadedImage,
View view,
boolean isInCache)
callback function after get image successfully, run on ui thread
|
void |
onPreGet(java.lang.String imageUrl,
View view)
callback function before get image, run on ui thread
|
void onPreGet(java.lang.String imageUrl, View view)
imageUrl
- imageUrlview
- view need the imagevoid onGetNotInCache(java.lang.String imageUrl, View view)
onPreGet(String, View)
, before
#onGetSuccess(String, String, View, boolean)
and
#onGetFailed(String, String, View, FailedReason)
imageUrl
- imageUrlview
- view need the imagevoid onGetSuccess(java.lang.String imageUrl, Bitmap loadedImage, View view, boolean isInCache)
imageUrl
- imageUrlloadedImage
- loaded image bitmapview
- view need the imageisInCache
- whether already in cache or got realtimevoid onGetFailed(java.lang.String imageUrl, Bitmap loadedImage, View view, FailedReason failedReason)
imageUrl
- imageUrlloadedImage
- loaded image bitmapview
- view need the imagefailedReason
- failed reason for get image