public class

ImagePerfControllerListener

extends BaseControllerListener<INFO>
java.lang.Object
   ↳ com.facebook.drawee.controller.BaseControllerListener<INFO>
     ↳ com.facebook.drawee.backends.pipeline.info.internal.ImagePerfControllerListener

Summary

Public Constructors
ImagePerfControllerListener(MonotonicClock clock, ImagePerfState imagePerfState, ImagePerfMonitor imagePerfMonitor)
Public Methods
void onFailure(String id, Throwable throwable)
Called after the fetch of the final image failed.
void onFinalImageSet(String id, ImageInfo imageInfo, Animatable animatable)
Called after the final image has been set.
void onIntermediateImageSet(String id, ImageInfo imageInfo)
Called after any intermediate image has been set.
void onRelease(String id)
Called after the controller released the fetched image.
void onSubmit(String id, Object callerContext)
Called before the image request is submitted.
[Expand]
Inherited Methods
From class com.facebook.drawee.controller.BaseControllerListener
From class java.lang.Object
From interface com.facebook.drawee.controller.ControllerListener

Public Constructors

public ImagePerfControllerListener (MonotonicClock clock, ImagePerfState imagePerfState, ImagePerfMonitor imagePerfMonitor)

Public Methods

public void onFailure (String id, Throwable throwable)

Called after the fetch of the final image failed.

Parameters
id controller id
throwable failure cause

public void onFinalImageSet (String id, ImageInfo imageInfo, Animatable animatable)

Called after the final image has been set.

Parameters
id controller id
imageInfo image info

public void onIntermediateImageSet (String id, ImageInfo imageInfo)

Called after any intermediate image has been set.

Parameters
id controller id
imageInfo image info

public void onRelease (String id)

Called after the controller released the fetched image.

IMPORTANT: It is not safe to reuse the controller from within this callback!

Parameters
id controller id

public void onSubmit (String id, Object callerContext)

Called before the image request is submitted.

IMPORTANT: It is not safe to reuse the controller from within this callback!

Parameters
id controller id
callerContext caller context