public static class SubsamplingScaleImageView.DefaultOnImageEventListener extends java.lang.Object implements SubsamplingScaleImageView.OnImageEventListener
SubsamplingScaleImageView.OnImageEventListener for extension. This does nothing in any method.| Constructor and Description |
|---|
DefaultOnImageEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onImageLoaded()
Called when the full size image is ready.
|
void |
onImageLoadError(java.lang.Exception e)
Indicates an error initiliasing the decoder when using a tiling, or when loading the full
size bitmap when tiling is disabled.
|
void |
onPreviewLoadError(java.lang.Exception e)
Called when a preview image could not be loaded.
|
void |
onPreviewReleased()
Called when a bitmap set using ImageSource.cachedBitmap is no longer being used by the View.
|
void |
onReady()
Called when the dimensions of the image and view are known, and either a preview image,
the full size image, or base layer tiles are loaded.
|
void |
onTileLoadError(java.lang.Exception e)
Called when an image tile could not be loaded.
|
public void onReady()
SubsamplingScaleImageView.OnImageEventListeneronReady in interface SubsamplingScaleImageView.OnImageEventListenerpublic void onImageLoaded()
SubsamplingScaleImageView.OnImageEventListenerSubsamplingScaleImageView.OnImageEventListener.onReady() is the best
event to listen to.onImageLoaded in interface SubsamplingScaleImageView.OnImageEventListenerpublic void onPreviewLoadError(java.lang.Exception e)
SubsamplingScaleImageView.OnImageEventListeneronPreviewLoadError in interface SubsamplingScaleImageView.OnImageEventListenere - The exception thrown. This error is logged by the view.public void onImageLoadError(java.lang.Exception e)
SubsamplingScaleImageView.OnImageEventListeneronImageLoadError in interface SubsamplingScaleImageView.OnImageEventListenere - The exception thrown. This error is also logged by the view.public void onTileLoadError(java.lang.Exception e)
SubsamplingScaleImageView.OnImageEventListenerSubsamplingScaleImageView.OnImageEventListener.onImageLoadError(Exception).onTileLoadError in interface SubsamplingScaleImageView.OnImageEventListenere - The exception thrown. This error is logged by the view.public void onPreviewReleased()
SubsamplingScaleImageView.OnImageEventListeneronPreviewReleased in interface SubsamplingScaleImageView.OnImageEventListener