public static class SubsamplingScaleImageView.DefaultOnImageEventListener extends 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(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(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(Exception e)
Called when an image tile could not be loaded.
|
public void onReady()
SubsamplingScaleImageView.OnImageEventListener
onReady
in interface SubsamplingScaleImageView.OnImageEventListener
public void onImageLoaded()
SubsamplingScaleImageView.OnImageEventListener
SubsamplingScaleImageView.OnImageEventListener.onReady()
is the best
event to listen to.onImageLoaded
in interface SubsamplingScaleImageView.OnImageEventListener
public void onPreviewLoadError(Exception e)
SubsamplingScaleImageView.OnImageEventListener
onPreviewLoadError
in interface SubsamplingScaleImageView.OnImageEventListener
e
- The exception thrown. This error is logged by the view.public void onImageLoadError(Exception e)
SubsamplingScaleImageView.OnImageEventListener
onImageLoadError
in interface SubsamplingScaleImageView.OnImageEventListener
e
- The exception thrown. This error is also logged by the view.public void onTileLoadError(Exception e)
SubsamplingScaleImageView.OnImageEventListener
SubsamplingScaleImageView.OnImageEventListener.onImageLoadError(Exception)
.onTileLoadError
in interface SubsamplingScaleImageView.OnImageEventListener
e
- The exception thrown. This error is logged by the view.public void onPreviewReleased()
SubsamplingScaleImageView.OnImageEventListener
onPreviewReleased
in interface SubsamplingScaleImageView.OnImageEventListener