public class

ImagePipelineFactory

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.core.ImagePipelineFactory

Class Overview

Factory class for the image pipeline.

This class constructs the pipeline and its dependencies from other libraries.

As the pipeline object can be quite expensive to create, it is strongly recommended that applications create just one instance of this class and of the pipeline.

Summary

Public Constructors
ImagePipelineFactory(ImagePipelineConfig config)
Public Methods
DrawableFactory getAnimatedDrawableFactory(Context context)
CountingMemoryCache<CacheKeyCloseableImage> getBitmapCountingMemoryCache()
InstrumentedMemoryCache<CacheKeyCloseableImage> getBitmapMemoryCache()
CloseableReferenceFactory getCloseableReferenceFactory()
CountingMemoryCache<CacheKeyPooledByteBuffer> getEncodedCountingMemoryCache()
InstrumentedMemoryCache<CacheKeyPooledByteBuffer> getEncodedMemoryCache()
ImagePipeline getImagePipeline()
static ImagePipelineFactory getInstance()
Gets the instance of ImagePipelineFactory.
BufferedDiskCache getMainBufferedDiskCache()
FileCache getMainFileCache()
PlatformBitmapFactory getPlatformBitmapFactory()
PlatformDecoder getPlatformDecoder()
FileCache getSmallImageFileCache()
synchronized static boolean hasBeenInitialized()
Checks if ImagePipelineFactory has already been initialized
synchronized static void initialize(Context context)
Initializes ImagePipelineFactory with default config.
synchronized static void initialize(ImagePipelineConfig imagePipelineConfig)
Initializes ImagePipelineFactory with the specified config.
synchronized static void initialize(ImagePipelineConfig imagePipelineConfig, boolean forceSinglePipelineInstance)
Initializes ImagePipelineFactory with the specified config.
String reportData()
static void setInstance(ImagePipelineFactory newInstance)
Overrides current instance with a new one.
synchronized static void shutDown()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ImagePipelineFactory (ImagePipelineConfig config)

Public Methods

public DrawableFactory getAnimatedDrawableFactory (Context context)

public CountingMemoryCache<CacheKeyCloseableImage> getBitmapCountingMemoryCache ()

public InstrumentedMemoryCache<CacheKeyCloseableImage> getBitmapMemoryCache ()

public CloseableReferenceFactory getCloseableReferenceFactory ()

public CountingMemoryCache<CacheKeyPooledByteBuffer> getEncodedCountingMemoryCache ()

public InstrumentedMemoryCache<CacheKeyPooledByteBuffer> getEncodedMemoryCache ()

public ImagePipeline getImagePipeline ()

public static ImagePipelineFactory getInstance ()

Gets the instance of ImagePipelineFactory.

public BufferedDiskCache getMainBufferedDiskCache ()

public FileCache getMainFileCache ()

public PlatformBitmapFactory getPlatformBitmapFactory ()

public PlatformDecoder getPlatformDecoder ()

public FileCache getSmallImageFileCache ()

public static synchronized boolean hasBeenInitialized ()

Checks if ImagePipelineFactory has already been initialized

public static synchronized void initialize (Context context)

Initializes ImagePipelineFactory with default config.

public static synchronized void initialize (ImagePipelineConfig imagePipelineConfig)

Initializes ImagePipelineFactory with the specified config.

public static synchronized void initialize (ImagePipelineConfig imagePipelineConfig, boolean forceSinglePipelineInstance)

Initializes ImagePipelineFactory with the specified config.

public String reportData ()

public static void setInstance (ImagePipelineFactory newInstance)

Overrides current instance with a new one. Usually used when dealing with multiple ImagePipelineFactories

public static synchronized void shutDown ()