| java.lang.Object | |
| ↳ | com.facebook.drawee.controller.ForwardingControllerListener<INFO> | 
Listener that forwards controller events to multiple listeners.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ForwardingControllerListener() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| synchronized void | addListener(ControllerListener<? super INFO> listener) | ||||||||||
| synchronized void | clearListeners() | ||||||||||
| static <INFO> ForwardingControllerListener<INFO> | create() | ||||||||||
| static <INFO> ForwardingControllerListener<INFO> | of(ControllerListener<? super INFO> listener1, ControllerListener<? super INFO> listener2) | ||||||||||
| static <INFO> ForwardingControllerListener<INFO> | of(ControllerListener<? super INFO> listener) | ||||||||||
| synchronized void | onFailure(String id, Throwable throwable) Called after the fetch of the final image failed. | ||||||||||
| synchronized void | onFinalImageSet(String id, INFO imageInfo, Animatable animatable) Called after the final image has been set. | ||||||||||
| void | onImageDrawn(String id, INFO imageInfo, DimensionsInfo dimensionsInfo) Called when the image is drawn | ||||||||||
| void | onIntermediateImageFailed(String id, Throwable throwable) Called after the fetch of the intermediate image failed. | ||||||||||
| void | onIntermediateImageSet(String id, INFO imageInfo) Called after any intermediate image has been set. | ||||||||||
| synchronized void | onRelease(String id) Called after the controller released the fetched image. | ||||||||||
| synchronized void | onSubmit(String id, Object callerContext) Called before the image request is submitted. | ||||||||||
| synchronized void | removeListener(ControllerListener<? super INFO> listener) | ||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
|  From interface
  com.facebook.drawee.controller.ControllerListener | |||||||||||
|  From interface
  com.facebook.fresco.ui.common.OnDrawControllerListener | |||||||||||
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 when the image is drawn
| id | controller id | 
|---|---|
| imageInfo | image info | 
| dimensionsInfo | viewport and encoded image dimensions | 
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 |