Back to Fresco

DraweeConfig.Builder

docs/javadoc/reference/com/facebook/drawee/backends/pipeline/DraweeConfig.Builder.html

3.6.015.7 KB
Original Source

Fresco

|

|

Packages | Classes

Classes

Packages | Classes

Summary: Ctors | Methods | Inherited Methods | [Expand All]

public static class

DraweeConfig.Builder

extends Object

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

Summary

Public Constructors
Public Methods
DraweeConfig.Builder
Add a custom drawable factory that will be used to create Drawables for CloseableImages.
DraweeConfig
DraweeConfig.Builder
Set whether a debug overlay that displays image information, like dimensions and size should be drawn on top of a Drawee view.
DraweeConfig.Builder
Set whether a debug overlay that displays image information, like dimensions and size should be drawn on top of a Drawee view.
DraweeConfig.Builder
DraweeConfig.Builder
Set a PipelineDraweeControllerFactory to be used instead of the default one.

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

|

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

+Generated by Doclava. +