-
- All Implemented Interfaces:
-
com.facebook.imagepipeline.producers.ProducerListener2
public interface RequestListener2 implements ProducerListener2
Listener for ImageRequest with access to the full ProducerContext.
-
-
Method Summary
Modifier and Type Method Description abstract voidonRequestStart(ProducerContext producerContext)Called when request is about to be submitted to the Orchestrator's executor queue. abstract voidonRequestSuccess(ProducerContext producerContext)Called after successful completion of the request (all producers completed successfully). abstract voidonRequestFailure(ProducerContext producerContext, Throwable throwable)Called after failure to complete the request (some producer failed). abstract voidonRequestCancellation(ProducerContext producerContext)Called after the request is cancelled. -
Methods inherited from class com.facebook.imagepipeline.producers.ProducerListener2
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(ProducerContext producerContext)
Called when request is about to be submitted to the Orchestrator's executor queue.
- Parameters:
producerContext- the producer context for the image
-
onRequestSuccess
abstract void onRequestSuccess(ProducerContext producerContext)
Called after successful completion of the request (all producers completed successfully).
- Parameters:
producerContext- the producer context for the image
-
onRequestFailure
abstract void onRequestFailure(ProducerContext producerContext, Throwable throwable)
Called after failure to complete the request (some producer failed).
- Parameters:
producerContext- the producer context for the imagethrowable- cause of failure
-
onRequestCancellation
abstract void onRequestCancellation(ProducerContext producerContext)
Called after the request is cancelled.
- Parameters:
producerContext- the producer context for the image
-
-
-
-