Back to project page cube-sdk.
The source code is released under:
Apache License
If you think the Android project cube-sdk 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 in.srain.cube.image.iface; /*from w w w . j a v a2 s . co m*/ import android.graphics.drawable.BitmapDrawable; import in.srain.cube.image.CubeImageView; import in.srain.cube.image.ImageTask; /** * A handler that used in loading a image. * <p/> * <p> * {@link ImageLoadHandler#onLoading(ImageTask, CubeImageView)} will be called when begin to load the image. * </p> * <p/> * <p> * {@link ImageLoadHandler#onLoadFinish(ImageTask, CubeImageView, BitmapDrawable)} will be called after the image is loaded. * </p> */ public interface ImageLoadHandler { /** * When begin to load the image from disk or network. */ void onLoading(ImageTask imageTask, CubeImageView cubeImageView); /** * After image is loaded. */ void onLoadFinish(ImageTask imageTask, CubeImageView cubeImageView, BitmapDrawable drawable); /** * Some errors has occurred */ void onLoadError(ImageTask imageTask, CubeImageView imageView, int errorCode); }