public class

ImagePerfRequestListener

extends BaseRequestListener
java.lang.Object
   ↳ com.facebook.imagepipeline.listener.BaseRequestListener
     ↳ com.facebook.drawee.backends.pipeline.info.internal.ImagePerfRequestListener

Summary

Public Constructors
ImagePerfRequestListener(MonotonicClock monotonicClock, ImagePerfState imagePerfState)
Public Methods
void onRequestCancellation(String requestId)
Called after the request is cancelled.
void onRequestFailure(ImageRequest request, String requestId, Throwable throwable, boolean isPrefetch)
Called after failure to complete the request (some producer failed).
void onRequestStart(ImageRequest request, Object callerContext, String requestId, boolean isPrefetch)
Called when request is about to be submitted to the Orchestrator's executor queue.
void onRequestSuccess(ImageRequest request, String requestId, boolean isPrefetch)
Called after successful completion of the request (all producers completed successfully).
[Expand]
Inherited Methods
From class com.facebook.imagepipeline.listener.BaseRequestListener
From class java.lang.Object
From interface com.facebook.imagepipeline.listener.RequestListener
From interface com.facebook.imagepipeline.producers.ProducerListener

Public Constructors

public ImagePerfRequestListener (MonotonicClock monotonicClock, ImagePerfState imagePerfState)

Public Methods

public void onRequestCancellation (String requestId)

Called after the request is cancelled.

Parameters
requestId unique id generated automatically for each request submission

public void onRequestFailure (ImageRequest request, String requestId, Throwable throwable, boolean isPrefetch)

Called after failure to complete the request (some producer failed).

Parameters
request which triggered the event
requestId unique id generated automatically for each request submission
throwable cause of failure
isPrefetch whether the request is a prefetch or not

public void onRequestStart (ImageRequest request, Object callerContext, String requestId, boolean isPrefetch)

Called when request is about to be submitted to the Orchestrator's executor queue.

Parameters
request which triggered the event
callerContext context of the caller of the request
requestId unique id generated automatically for each request submission
isPrefetch whether the request is a prefetch or not

public void onRequestSuccess (ImageRequest request, String requestId, boolean isPrefetch)

Called after successful completion of the request (all producers completed successfully).

Parameters
request which triggered the event
requestId unique id generated automatically for each request submission
isPrefetch whether the request is a prefetch or not