-
@NotThreadSafe() public class ImagePipelineFactoryFactory 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.
-
-
Constructor Summary
Constructors Constructor Description ImagePipelineFactory(ImagePipelineConfigInterface config)
-
Method Summary
Modifier and Type Method Description static ImagePipelineFactorygetInstance()Gets the instance of ImagePipelineFactory. static voidsetInstance(ImagePipelineFactory newInstance)Overrides current instance with a new one. static synchronized voidinitialize(Context context)Initializes ImagePipelineFactory with default config. static synchronized voidinitialize(ImagePipelineConfigInterface imagePipelineConfig)Initializes ImagePipelineFactory with the specified config. static synchronized voidforceSingleInstance()static synchronized booleanhasBeenInitialized()Checks if ImagePipelineFactory has already been initialized static synchronized voidshutDown()Shuts ImagePipelineFactory down. DrawableFactorygetAnimatedDrawableFactory(@Nullable() Context context)CountingMemoryCache<CacheKey, CloseableImage>getBitmapCountingMemoryCache()AnimatedCachegetAnimatedCache(int memoryPercentage)InstrumentedMemoryCache<CacheKey, CloseableImage>getBitmapMemoryCache()CountingMemoryCache<CacheKey, PooledByteBuffer>getEncodedCountingMemoryCache()InstrumentedMemoryCache<CacheKey, PooledByteBuffer>getEncodedMemoryCache()BufferedDiskCachegetMainBufferedDiskCache()FileCachegetMainFileCache()ImagePipelinegetImagePipeline()PlatformBitmapFactorygetPlatformBitmapFactory()PlatformDecodergetPlatformDecoder()FileCachegetSmallImageFileCache()CloseableReferenceFactorygetCloseableReferenceFactory()StringreportData()-
-
Constructor Detail
-
ImagePipelineFactory
ImagePipelineFactory(ImagePipelineConfigInterface config)
-
-
Method Detail
-
getInstance
static ImagePipelineFactory getInstance()
Gets the instance of ImagePipelineFactory.
-
setInstance
static void setInstance(ImagePipelineFactory newInstance)
Overrides current instance with a new one. Usually used when dealing with multipleImagePipelineFactories
-
initialize
static synchronized void initialize(Context context)
Initializes ImagePipelineFactory with default config.
-
initialize
static synchronized void initialize(ImagePipelineConfigInterface imagePipelineConfig)
Initializes ImagePipelineFactory with the specified config.
-
forceSingleInstance
static synchronized void forceSingleInstance()
-
hasBeenInitialized
static synchronized boolean hasBeenInitialized()
Checks if ImagePipelineFactory has already been initialized
-
shutDown
static synchronized void shutDown()
Shuts ImagePipelineFactory down.
-
getAnimatedDrawableFactory
@Nullable() DrawableFactory getAnimatedDrawableFactory(@Nullable() Context context)
-
getBitmapCountingMemoryCache
CountingMemoryCache<CacheKey, CloseableImage> getBitmapCountingMemoryCache()
-
getAnimatedCache
AnimatedCache getAnimatedCache(int memoryPercentage)
-
getBitmapMemoryCache
InstrumentedMemoryCache<CacheKey, CloseableImage> getBitmapMemoryCache()
-
getEncodedCountingMemoryCache
CountingMemoryCache<CacheKey, PooledByteBuffer> getEncodedCountingMemoryCache()
-
getEncodedMemoryCache
InstrumentedMemoryCache<CacheKey, PooledByteBuffer> getEncodedMemoryCache()
-
getMainBufferedDiskCache
BufferedDiskCache getMainBufferedDiskCache()
-
getMainFileCache
FileCache getMainFileCache()
-
getImagePipeline
ImagePipeline getImagePipeline()
-
getPlatformBitmapFactory
PlatformBitmapFactory getPlatformBitmapFactory()
-
getPlatformDecoder
PlatformDecoder getPlatformDecoder()
-
getSmallImageFileCache
FileCache getSmallImageFileCache()
-
getCloseableReferenceFactory
CloseableReferenceFactory getCloseableReferenceFactory()
-
reportData
@Nullable() String reportData()
-
-
-
-