-
- All Implemented Interfaces:
-
com.facebook.imagepipeline.producers.ProducerListener
public interface RequestListener implements ProducerListener
Listener for ImageRequest.
-
-
Method Summary
Modifier and Type Method Description abstract voidonRequestStart(ImageRequest request, Object callerContext, String requestId, boolean isPrefetch)Called when request is about to be submitted to the Orchestrator's executor queue. abstract voidonRequestSuccess(ImageRequest request, String requestId, boolean isPrefetch)Called after successful completion of the request (all producers completed successfully). abstract voidonRequestFailure(ImageRequest request, String requestId, Throwable throwable, boolean isPrefetch)Called after failure to complete the request (some producer failed). abstract voidonRequestCancellation(String requestId)Called after the request is cancelled. -
Methods inherited from class com.facebook.imagepipeline.producers.ProducerListener
onProducerEvent, onProducerFinishWithCancellation, onProducerFinishWithFailure, onProducerFinishWithSuccess, onProducerStart, onUltimateProducerReached, requiresExtraMap -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onRequestStart
abstract 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 eventcallerContext- context of the caller of the requestrequestId- unique id generated automatically for each request submissionisPrefetch- whether the request is a prefetch or not
-
onRequestSuccess
abstract void onRequestSuccess(ImageRequest request, String requestId, boolean isPrefetch)
Called after successful completion of the request (all producers completed successfully).
- Parameters:
request- which triggered the eventrequestId- unique id generated automatically for each request submissionisPrefetch- whether the request is a prefetch or not
-
onRequestFailure
abstract 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 eventrequestId- unique id generated automatically for each request submissionthrowable- cause of failureisPrefetch- whether the request is a prefetch or not
-
onRequestCancellation
abstract void onRequestCancellation(String requestId)
Called after the request is cancelled.
- Parameters:
requestId- unique id generated automatically for each request submission
-
-
-
-