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 |
Concrete implementation of ImagePipeline Drawee controller builder.
See AbstractDraweeControllerBuilder
for more details.
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
|
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).
Concrete builder classes should override this method to return a new controller.