public class

ImageOriginRequestListener

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

Class Overview

Image origin request listener that maps all image requests for a given Drawee controller to an ImageOrigin and corresponding ImageOriginListener.

Summary

Public Constructors
ImageOriginRequestListener(String controllerId, ImageOriginListener imageOriginLister)
Public Methods
void init(String controllerId)
Re-initialize the listener in case the underlying controller ID changes.
void onUltimateProducerReached(String requestId, String producerName, boolean successful)
Called when the producer which can create the final result for a given request has completed.
[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 ImageOriginRequestListener (String controllerId, ImageOriginListener imageOriginLister)

Public Methods

public void init (String controllerId)

Re-initialize the listener in case the underlying controller ID changes.

Parameters
controllerId the new controller ID

public void onUltimateProducerReached (String requestId, String producerName, boolean successful)

Called when the producer which can create the final result for a given request has completed.

This can be used to determine which producer was best able to satisfy the request.