public class

Fresco

extends Object
java.lang.Object
   ↳ com.facebook.drawee.backends.pipeline.Fresco

Class Overview

Fresco entry point.

You must initialize this class before use. The simplest way is to just do {#code Fresco.initialize(Context)}.

Summary

Public Methods
static PipelineDraweeControllerBuilderSupplier getDraweeControllerBuilderSupplier()
Gets the supplier of Fresco Drawee controller builders.
static ImagePipeline getImagePipeline()
Gets the image pipeline instance.
static ImagePipelineFactory getImagePipelineFactory()
static boolean hasBeenInitialized()
Returns true if Fresco has been initialized.
static void initialize(Context context, ImagePipelineConfig imagePipelineConfig, DraweeConfig draweeConfig)
Initializes Fresco with the specified config and native code enabled.
static void initialize(Context context, ImagePipelineConfig imagePipelineConfig)
Initializes Fresco with the default Drawee config.
static void initialize(Context context, ImagePipelineConfig imagePipelineConfig, DraweeConfig draweeConfig, boolean useNativeCode)
Initializes Fresco with the specified config.
static void initialize(Context context)
Initializes Fresco with the default config.
static PipelineDraweeControllerBuilder newDraweeControllerBuilder()
Returns a new instance of Fresco Drawee controller builder.
static void shutDown()
Shuts Fresco down.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static PipelineDraweeControllerBuilderSupplier getDraweeControllerBuilderSupplier ()

Gets the supplier of Fresco Drawee controller builders.

public static ImagePipeline getImagePipeline ()

Gets the image pipeline instance.

public static ImagePipelineFactory getImagePipelineFactory ()

public static boolean hasBeenInitialized ()

Returns true if Fresco has been initialized.

public static void initialize (Context context, ImagePipelineConfig imagePipelineConfig, DraweeConfig draweeConfig)

Initializes Fresco with the specified config and native code enabled.

public static void initialize (Context context, ImagePipelineConfig imagePipelineConfig)

Initializes Fresco with the default Drawee config.

public static void initialize (Context context, ImagePipelineConfig imagePipelineConfig, DraweeConfig draweeConfig, boolean useNativeCode)

Initializes Fresco with the specified config.

public static void initialize (Context context)

Initializes Fresco with the default config.

public static PipelineDraweeControllerBuilder newDraweeControllerBuilder ()

Returns a new instance of Fresco Drawee controller builder.

public static void shutDown ()

Shuts Fresco down.