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)
Public Methods
static ImageRequest.RequestLevel convertCacheLevelToRequestLevel(AbstractDraweeControllerBuilder.CacheLevel cacheLevel)
PipelineDraweeControllerBuilder setUri(String uriString)
PipelineDraweeControllerBuilder setUri(Uri uri)
Protected Methods
DataSource<CloseableReference<CloseableImage>> getDataSourceForRequest(ImageRequest imageRequest, Object callerContext, AbstractDraweeControllerBuilder.CacheLevel cacheLevel)
Concrete builder classes should override this method to return a data source for the request.
PipelineDraweeControllerBuilder getThis()
Concrete builder classes should override this method to return {#code this}.
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)

Public Methods

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

public PipelineDraweeControllerBuilder setUri (String uriString)

public PipelineDraweeControllerBuilder setUri (Uri uri)

Protected Methods

protected DataSource<CloseableReference<CloseableImage>> getDataSourceForRequest (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 PipelineDraweeControllerBuilder getThis ()

Concrete builder classes should override this method to return {#code this}.

protected PipelineDraweeController obtainController ()

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