public interface

RequestListener2

implements ProducerListener2
com.facebook.imagepipeline.listener.RequestListener2
Known Indirect Subclasses

Class Overview

Listener for ImageRequest with access to the full ProducerContext.

Summary

Public Methods
abstract void onRequestCancellation(ProducerContext producerContext)
Called after the request is cancelled.
abstract void onRequestFailure(ProducerContext producerContext, Throwable throwable)
Called after failure to complete the request (some producer failed).
abstract void onRequestStart(ProducerContext producerContext)
Called when request is about to be submitted to the Orchestrator's executor queue.
abstract void onRequestSuccess(ProducerContext producerContext)
Called after successful completion of the request (all producers completed successfully).
[Expand]
Inherited Methods
From interface com.facebook.imagepipeline.producers.ProducerListener2

Public Methods

public abstract void onRequestCancellation (ProducerContext producerContext)

Called after the request is cancelled.

Parameters
producerContext the producer context for the image

public abstract void onRequestFailure (ProducerContext producerContext, Throwable throwable)

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

Parameters
producerContext the producer context for the image
throwable cause of failure

public 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

public abstract void onRequestSuccess (ProducerContext producerContext)

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

Parameters
producerContext the producer context for the image