java.lang.Object | |
↳ | com.facebook.imagepipeline.core.ImagePipelineFactory |
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.
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, WebpBitmapFactory.WebpErrorLogger webpErrorLogger)
Provide the implementation of the PlatformDecoder for the current platform using the
provided PoolFactory
| ||||||||||
AnimatedFactory | getAnimatedFactory() | ||||||||||
CountingMemoryCache<CacheKey, CloseableImage> | getBitmapCountingMemoryCache() | ||||||||||
MemoryCache<CacheKey, CloseableImage> | getBitmapMemoryCache() | ||||||||||
CountingMemoryCache<CacheKey, PooledByteBuffer> | getEncodedCountingMemoryCache() | ||||||||||
MemoryCache<CacheKey, PooledByteBuffer> | 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()
Shuts
ImagePipelineFactory down. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This method is deprecated.
use DiskStorageCacheFactory.buildDiskStorageCache
Creates a new DiskStorageCache
from the given DiskCacheConfig
Provide the implementation of the PlatformBitmapFactory for the current platform using the provided PoolFactory
poolFactory | The PoolFactory |
---|---|
platformDecoder | The PlatformDecoder |
Provide the implementation of the PlatformDecoder for the current platform using the provided PoolFactory
poolFactory | The PoolFactory |
---|
This method is deprecated.
use ImagePipelineFactory.getMainFileCache
This method is deprecated.
use ImagePipelineFactory.getSmallImageFileCache
Initializes ImagePipelineFactory
with default config.
Initializes ImagePipelineFactory
with the specified config.