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 DiskStorageCache buildDiskStorageCache(DiskCacheConfig diskCacheConfig, DiskStorage diskStorage)
This method is deprecated. use DiskStorageCacheFactory.buildDiskStorageCache
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 decodeMemoryFileEnabled, boolean webpSupportEnabled)
Provide the implementation of the PlatformDecoder for the current platform using the provided PoolFactory
AnimatedFactory getAnimatedFactory()
CountingMemoryCache<CacheKeyCloseableImage> getBitmapCountingMemoryCache()
MemoryCache<CacheKeyCloseableImage> getBitmapMemoryCache()
CountingMemoryCache<CacheKeyPooledByteBuffer> getEncodedCountingMemoryCache()
MemoryCache<CacheKeyPooledByteBuffer> getEncodedMemoryCache()
ImagePipeline getImagePipeline()
static ImagePipelineFactory getInstance()
Gets the instance of ImagePipelineFactory.
FileCache getMainDiskStorageCache()
This method is deprecated. use ImagePipelineFactory.getMainFileCache
FileCache getMainFileCache()
PlatformBitmapFactory getPlatformBitmapFactory()
PlatformDecoder getPlatformDecoder()
FileCache getSmallImageDiskStorageCache()
This method is deprecated. use ImagePipelineFactory.getSmallImageFileCache
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 DiskStorageCache buildDiskStorageCache (DiskCacheConfig diskCacheConfig, DiskStorage diskStorage)

This method is deprecated.
use DiskStorageCacheFactory.buildDiskStorageCache

Creates a new DiskStorageCache from the given DiskCacheConfig

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 decodeMemoryFileEnabled, boolean webpSupportEnabled)

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

Parameters
poolFactory The PoolFactory
Returns
  • The PlatformDecoder implementation

public AnimatedFactory getAnimatedFactory ()

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 FileCache getMainDiskStorageCache ()

This method is deprecated.
use ImagePipelineFactory.getMainFileCache

public FileCache getMainFileCache ()

public PlatformBitmapFactory getPlatformBitmapFactory ()

public PlatformDecoder getPlatformDecoder ()

public FileCache getSmallImageDiskStorageCache ()

This method is deprecated.
use ImagePipelineFactory.getSmallImageFileCache

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 ()