public static class

DraweeConfig.Builder

extends Object
java.lang.Object
   ↳ com.facebook.drawee.backends.pipeline.DraweeConfig.Builder

Summary

Public Constructors
Builder()
Public Methods
DraweeConfig.Builder addCustomDrawableFactory(DrawableFactory factory)
Add a custom drawable factory that will be used to create Drawables for CloseableImages.
DraweeConfig build()
DraweeConfig.Builder setDebugOverlayEnabledSupplier(Supplier<Boolean> debugOverlayEnabledSupplier)
Set whether a debug overlay that displays image information, like dimensions and size should be drawn on top of a Drawee view.
DraweeConfig.Builder setDrawDebugOverlay(boolean drawDebugOverlay)
Set whether a debug overlay that displays image information, like dimensions and size should be drawn on top of a Drawee view.
DraweeConfig.Builder setImagePerfDataListener(ImagePerfDataListener imagePerfDataListener)
DraweeConfig.Builder setPipelineDraweeControllerFactory(PipelineDraweeControllerFactory factory)
Set a PipelineDraweeControllerFactory to be used instead of the default one.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public DraweeConfig.Builder addCustomDrawableFactory (DrawableFactory factory)

Add a custom drawable factory that will be used to create Drawables for CloseableImages.

Parameters
factory the factory to use
Returns
  • the builder

public DraweeConfig build ()

public DraweeConfig.Builder setDebugOverlayEnabledSupplier (Supplier<Boolean> debugOverlayEnabledSupplier)

Set whether a debug overlay that displays image information, like dimensions and size should be drawn on top of a Drawee view.

Parameters
debugOverlayEnabledSupplier should return true if the debug overlay should be drawn
Returns
  • the builder

public DraweeConfig.Builder setDrawDebugOverlay (boolean drawDebugOverlay)

Set whether a debug overlay that displays image information, like dimensions and size should be drawn on top of a Drawee view.

Parameters
drawDebugOverlay true if the debug overlay should be drawn
Returns
  • the builder

public DraweeConfig.Builder setImagePerfDataListener (ImagePerfDataListener imagePerfDataListener)

public DraweeConfig.Builder setPipelineDraweeControllerFactory (PipelineDraweeControllerFactory factory)

Set a PipelineDraweeControllerFactory to be used instead of the default one.

Parameters
factory the PipelineDraweeControllerFactory to use
Returns
  • the builder