Back to project page singly-android.
The source code is released under:
MIT License
If you think the Android project singly-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.singly.android.util; //from w w w .j a v a 2 s.c om import android.graphics.Bitmap; /** * A callback class used with {@link RemoteImageCache}. Notifies when an image * has been downloaded and cached or failed. */ public class ImageCacheListener { /** * When an image has been successfully downloaded and cached. * * When run through the RemoteImageCache this method is guaranteed to be run * in the UI thread. * * @param imageInfo The info of the image. * @param bitmap The Bitmap of the image. */ public void onSuccess(ImageInfo imageInfo, Bitmap bitmap) { } /** * When an image either failed download or could not be cached. * * When run through the RemoteImageCache this method is guaranteed to be run * in the UI thread. * * @param error The failure error. * @param imageInfo The info of the image. */ public void onFailure(Throwable error, ImageInfo imageInfo) { } }