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
static PlatformBitmapFactory buildPlatformBitmapFactory(PoolFactory poolFactory, PlatformDecoder platformDecoder)
Provide the implementation of the PlatformBitmapFactory for the current platform using the provided PoolFactory
static PlatformDecoder buildPlatformDecoder(PoolFactory poolFactory, boolean directWebpDirectDecodingEnabled)
Provide the implementation of the PlatformDecoder for the current platform using the provided PoolFactory
DrawableFactory getAnimatedDrawableFactory(Context context)
CountingMemoryCache<CacheKeyCloseableImage> getBitmapCountingMemoryCache()
MemoryCache<CacheKeyCloseableImage> getBitmapMemoryCache()
CountingMemoryCache<CacheKeyPooledByteBuffer> getEncodedCountingMemoryCache()
MemoryCache<CacheKeyPooledByteBuffer> getEncodedMemoryCache()
ImagePipeline getImagePipeline()
static ImagePipelineFactory getInstance()
Gets the instance of ImagePipelineFactory.
BufferedDiskCache getMainBufferedDiskCache()
FileCache getMainFileCache()
MediaVariationsIndex getMediaVariationsIndex()
PlatformBitmapFactory getPlatformBitmapFactory()
PlatformDecoder getPlatformDecoder()
FileCache getSmallImageFileCache()
static void initialize(Context context)
Initializes ImagePipelineFactory with default config.
static void initialize(ImagePipelineConfig imagePipelineConfig)
Initializes ImagePipelineFactory with the specified config.
static void shutDown()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ImagePipelineFactory (ImagePipelineConfig config)

Public Methods

public static PlatformBitmapFactory buildPlatformBitmapFactory (PoolFactory poolFactory, PlatformDecoder platformDecoder)

Provide the implementation of the PlatformBitmapFactory for the current platform using the provided PoolFactory

Parameters
poolFactory The PoolFactory
platformDecoder The PlatformDecoder
Returns
  • The PlatformBitmapFactory implementation

public static PlatformDecoder buildPlatformDecoder (PoolFactory poolFactory, boolean directWebpDirectDecodingEnabled)

Provide the implementation of the PlatformDecoder for the current platform using the provided PoolFactory

Parameters
poolFactory The PoolFactory
Returns
  • The PlatformDecoder implementation

public DrawableFactory getAnimatedDrawableFactory (Context context)

public CountingMemoryCache<CacheKeyCloseableImage> getBitmapCountingMemoryCache ()

public MemoryCache<CacheKeyCloseableImage> getBitmapMemoryCache ()

public CountingMemoryCache<CacheKeyPooledByteBuffer> getEncodedCountingMemoryCache ()

public MemoryCache<CacheKeyPooledByteBuffer> getEncodedMemoryCache ()

public ImagePipeline getImagePipeline ()

public static ImagePipelineFactory getInstance ()

Gets the instance of ImagePipelineFactory.

public BufferedDiskCache getMainBufferedDiskCache ()

public FileCache getMainFileCache ()

public MediaVariationsIndex getMediaVariationsIndex ()

public PlatformBitmapFactory getPlatformBitmapFactory ()

public PlatformDecoder getPlatformDecoder ()

public FileCache getSmallImageFileCache ()

public static void initialize (Context context)

Initializes ImagePipelineFactory with default config.

public static void initialize (ImagePipelineConfig imagePipelineConfig)

Initializes ImagePipelineFactory with the specified config.

public static void shutDown ()