public class

PipelineDraweeControllerBuilder

extends AbstractDraweeControllerBuilder<BUILDER extends AbstractDraweeControllerBuilder<BUILDER, REQUEST, IMAGE, INFO>, REQUEST, IMAGE, INFO>
java.lang.Object
   ↳ com.facebook.drawee.controller.AbstractDraweeControllerBuilder<BUILDER extends com.facebook.drawee.controller.AbstractDraweeControllerBuilder<BUILDER, REQUEST, IMAGE, INFO>, REQUEST, IMAGE, INFO>
     ↳ com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilder

Class Overview

Concrete implementation of ImagePipeline Drawee controller builder.

See AbstractDraweeControllerBuilder for more details.

Summary

Public Constructors
PipelineDraweeControllerBuilder(Context context, PipelineDraweeControllerFactory pipelineDraweeControllerFactory, ImagePipeline imagePipeline, Set<ControllerListener> boundControllerListeners, Set<ControllerListener2> boundControllerListeners2)
Public Methods
static ImageRequest.RequestLevel convertCacheLevelToRequestLevel(AbstractDraweeControllerBuilder.CacheLevel cacheLevel)
PipelineDraweeControllerBuilder setCustomDrawableFactories(DrawableFactory... drawableFactories)
PipelineDraweeControllerBuilder setCustomDrawableFactories(ImmutableList<DrawableFactory> customDrawableFactories)
PipelineDraweeControllerBuilder setCustomDrawableFactory(DrawableFactory drawableFactory)
PipelineDraweeControllerBuilder setImageOriginListener(ImageOriginListener imageOriginListener)
PipelineDraweeControllerBuilder setPerfDataListener(ImagePerfDataListener imagePerfDataListener)
PipelineDraweeControllerBuilder setUri(String uriString)
PipelineDraweeControllerBuilder setUri(Uri uri)
Protected Methods
DataSource<CloseableReference<CloseableImage>> getDataSourceForRequest(DraweeController controller, String controllerId, ImageRequest imageRequest, Object callerContext, AbstractDraweeControllerBuilder.CacheLevel cacheLevel)
Concrete builder classes should override this method to return a data source for the request.
RequestListener getRequestListener(DraweeController controller)
PipelineDraweeController obtainController()
Concrete builder classes should override this method to return a new controller.
[Expand]
Inherited Methods
From class com.facebook.drawee.controller.AbstractDraweeControllerBuilder
From class java.lang.Object
From interface com.facebook.drawee.interfaces.SimpleDraweeControllerBuilder

Public Constructors

public PipelineDraweeControllerBuilder (Context context, PipelineDraweeControllerFactory pipelineDraweeControllerFactory, ImagePipeline imagePipeline, Set<ControllerListener> boundControllerListeners, Set<ControllerListener2> boundControllerListeners2)

Public Methods

public static ImageRequest.RequestLevel convertCacheLevelToRequestLevel (AbstractDraweeControllerBuilder.CacheLevel cacheLevel)

public PipelineDraweeControllerBuilder setCustomDrawableFactories (DrawableFactory... drawableFactories)

public PipelineDraweeControllerBuilder setCustomDrawableFactories (ImmutableList<DrawableFactory> customDrawableFactories)

public PipelineDraweeControllerBuilder setCustomDrawableFactory (DrawableFactory drawableFactory)

public PipelineDraweeControllerBuilder setImageOriginListener (ImageOriginListener imageOriginListener)

public PipelineDraweeControllerBuilder setPerfDataListener (ImagePerfDataListener imagePerfDataListener)

public PipelineDraweeControllerBuilder setUri (String uriString)

public PipelineDraweeControllerBuilder setUri (Uri uri)

Protected Methods

protected DataSource<CloseableReference<CloseableImage>> getDataSourceForRequest (DraweeController controller, String controllerId, ImageRequest imageRequest, Object callerContext, AbstractDraweeControllerBuilder.CacheLevel cacheLevel)

Concrete builder classes should override this method to return a data source for the request.

IMPORTANT: Do NOT ever call this method directly. This method is only to be called from a supplier created in {#code getDataSourceSupplierForRequest(REQUEST, boolean)}.

IMPORTANT: Make sure that you do NOT use any non-final field from this method, as the field may change if the instance of this builder gets reused. If any such field is required, override {#code getDataSourceSupplierForRequest(REQUEST, boolean)}, and store the field in a final variable (same as it is done for callerContext).

protected RequestListener getRequestListener (DraweeController controller)

protected PipelineDraweeController obtainController ()

Concrete builder classes should override this method to return a new controller.