com.facebook.drawee.controller.ControllerListener<INFO> |
Known Indirect Subclasses |
Interface for AbstractDraweeController
listener.
Controller id is passed to each of the listener methods which is useful for debugging and instrumentation purposes where those events can then be associated with a sequence. Subscriber is free to completely ignore this id, as late callbacks and other such correctness issues are taken care of by the controller itself.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onFailure(String id, Throwable throwable)
Called after the fetch of the final image failed.
| ||||||||||
abstract void |
onFinalImageSet(String id, INFO imageInfo, Animatable animatable)
Called after the final image has been set.
| ||||||||||
abstract void |
onIntermediateImageFailed(String id, Throwable throwable)
Called after the fetch of the intermediate image failed.
| ||||||||||
abstract void |
onIntermediateImageSet(String id, INFO imageInfo)
Called after any intermediate image has been set.
| ||||||||||
abstract void |
onRelease(String id)
Called after the controller released the fetched image.
| ||||||||||
abstract void |
onSubmit(String id, Object callerContext)
Called before the image request is submitted.
|
Called after the fetch of the final image failed.
id | controller id |
---|---|
throwable | failure cause |
Called after the final image has been set.
id | controller id |
---|---|
imageInfo | image info |
Called after the fetch of the intermediate image failed.
id | controller id |
---|---|
throwable | failure cause |
Called after any intermediate image has been set.
id | controller id |
---|---|
imageInfo | image info |
Called after the controller released the fetched image.
IMPORTANT: It is not safe to reuse the controller from within this callback!
id | controller id |
---|
Called before the image request is submitted.
IMPORTANT: It is not safe to reuse the controller from within this callback!
id | controller id |
---|---|
callerContext | caller context |