public class

ImagePerfControllerListener2

extends BaseControllerListener2<INFO>
implements OnDrawControllerListener<INFO>
java.lang.Object
   ↳ com.facebook.fresco.ui.common.BaseControllerListener2<INFO>
     ↳ com.facebook.drawee.backends.pipeline.info.internal.ImagePerfControllerListener2

Summary

Public Constructors
ImagePerfControllerListener2(MonotonicClock clock, ImagePerfState imagePerfState, ImagePerfNotifier imagePerfNotifier, Supplier<Boolean> asyncLogging, Supplier<Boolean> useNewState)
Public Methods
void onFailure(String id, Throwable throwable, ControllerListener2.Extras extras)
Called after the fetch of the final image failed.
void onFinalImageSet(String id, ImageInfo imageInfo, ControllerListener2.Extras extraData)
Called after the final image has been set.
void onImageDrawn(String id, ImageInfo info, DimensionsInfo dimensionsInfo)
void onIntermediateImageSet(String id, ImageInfo imageInfo)
Called after any intermediate image has been set.
void onRelease(String id, ControllerListener2.Extras extras)
Called after the controller released the fetched image.
void onSubmit(String id, Object callerContext, ControllerListener2.Extras extraData)
Called before the image request is submitted.
void reportViewVisible(ImagePerfState state, long now)
void resetState()
[Expand]
Inherited Methods
From class com.facebook.fresco.ui.common.BaseControllerListener2
From class java.lang.Object
From interface com.facebook.fresco.ui.common.ControllerListener2
From interface com.facebook.fresco.ui.common.OnDrawControllerListener

Public Constructors

public ImagePerfControllerListener2 (MonotonicClock clock, ImagePerfState imagePerfState, ImagePerfNotifier imagePerfNotifier, Supplier<Boolean> asyncLogging, Supplier<Boolean> useNewState)

Public Methods

public void onFailure (String id, Throwable throwable, ControllerListener2.Extras extras)

Called after the fetch of the final image failed.

Parameters
id controller id
throwable failure cause
extras extra data

public void onFinalImageSet (String id, ImageInfo imageInfo, ControllerListener2.Extras extraData)

Called after the final image has been set.

Parameters
id controller id
imageInfo image info
extraData extra data

public void onImageDrawn (String id, ImageInfo info, DimensionsInfo dimensionsInfo)

public void onIntermediateImageSet (String id, ImageInfo imageInfo)

Called after any intermediate image has been set.

Parameters
id controller id

public void onRelease (String id, ControllerListener2.Extras extras)

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
extras extra data

public void onSubmit (String id, Object callerContext, ControllerListener2.Extras extraData)

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
extraData extra data

public void reportViewVisible (ImagePerfState state, long now)

public void resetState ()