public class

ImagePipelineConfig

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

Class Overview

Main configuration class for the image pipeline library.

To use: ImagePipelineConfig config = ImagePipelineConfig.newBuilder() .setXXX(xxx) .setYYY(yyy) .build(); ImagePipelineFactory factory = new ImagePipelineFactory(config); ImagePipeline pipeline = factory.getImagePipeline();

This should only be done once per process.

Summary

Nested Classes
class ImagePipelineConfig.Builder  
class ImagePipelineConfig.DefaultImageRequestConfig Contains default configuration that can be personalized for all the request  
Public Methods
MemoryCache<CacheKeyCloseableImage> getBitmapCacheOverride()
Bitmap.Config getBitmapConfig()
EntryStateObserver<CacheKey> getBitmapMemoryCacheEntryStateObserver()
BitmapMemoryCacheFactory getBitmapMemoryCacheFactory()
Supplier<MemoryCacheParams> getBitmapMemoryCacheParamsSupplier()
MemoryCache.CacheTrimStrategy getBitmapMemoryCacheTrimStrategy()
CacheKeyFactory getCacheKeyFactory()
CallerContextVerifier getCallerContextVerifier()
CloseableReferenceLeakTracker getCloseableReferenceLeakTracker()
Context getContext()
static ImagePipelineConfig.DefaultImageRequestConfig getDefaultImageRequestConfig()
MemoryCache<CacheKeyPooledByteBuffer> getEncodedMemoryCacheOverride()
Supplier<MemoryCacheParams> getEncodedMemoryCacheParamsSupplier()
ExecutorSupplier getExecutorSupplier()
ImagePipelineExperiments getExperiments()
FileCacheFactory getFileCacheFactory()
ImageCacheStatsTracker getImageCacheStatsTracker()
ImageDecoder getImageDecoder()
ImageDecoderConfig getImageDecoderConfig()
ImageTranscoderFactory getImageTranscoderFactory()
Integer getImageTranscoderType()
Supplier<Boolean> getIsPrefetchEnabledSupplier()
DiskCacheConfig getMainDiskCacheConfig()
int getMemoryChunkType()
MemoryTrimmableRegistry getMemoryTrimmableRegistry()
NetworkFetcher getNetworkFetcher()
PlatformBitmapFactory getPlatformBitmapFactory()
PoolFactory getPoolFactory()
ProgressiveJpegConfig getProgressiveJpegConfig()
Set<RequestListener2> getRequestListener2s()
Set<RequestListener> getRequestListeners()
DiskCacheConfig getSmallImageDiskCacheConfig()
boolean isDiskCacheEnabled()
boolean isDownsampleEnabled()
boolean isResizeAndRotateEnabledForNetwork()
static ImagePipelineConfig.Builder newBuilder(Context context)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public MemoryCache<CacheKeyCloseableImage> getBitmapCacheOverride ()

public Bitmap.Config getBitmapConfig ()

public EntryStateObserver<CacheKey> getBitmapMemoryCacheEntryStateObserver ()

public BitmapMemoryCacheFactory getBitmapMemoryCacheFactory ()

public Supplier<MemoryCacheParams> getBitmapMemoryCacheParamsSupplier ()

public MemoryCache.CacheTrimStrategy getBitmapMemoryCacheTrimStrategy ()

public CacheKeyFactory getCacheKeyFactory ()

public CallerContextVerifier getCallerContextVerifier ()

public CloseableReferenceLeakTracker getCloseableReferenceLeakTracker ()

public Context getContext ()

public static ImagePipelineConfig.DefaultImageRequestConfig getDefaultImageRequestConfig ()

public MemoryCache<CacheKeyPooledByteBuffer> getEncodedMemoryCacheOverride ()

public Supplier<MemoryCacheParams> getEncodedMemoryCacheParamsSupplier ()

public ExecutorSupplier getExecutorSupplier ()

public ImagePipelineExperiments getExperiments ()

public FileCacheFactory getFileCacheFactory ()

public ImageCacheStatsTracker getImageCacheStatsTracker ()

public ImageDecoder getImageDecoder ()

public ImageDecoderConfig getImageDecoderConfig ()

public ImageTranscoderFactory getImageTranscoderFactory ()

public Integer getImageTranscoderType ()

public Supplier<Boolean> getIsPrefetchEnabledSupplier ()

public DiskCacheConfig getMainDiskCacheConfig ()

public int getMemoryChunkType ()

public MemoryTrimmableRegistry getMemoryTrimmableRegistry ()

public NetworkFetcher getNetworkFetcher ()

public PlatformBitmapFactory getPlatformBitmapFactory ()

public PoolFactory getPoolFactory ()

public ProgressiveJpegConfig getProgressiveJpegConfig ()

public Set<RequestListener2> getRequestListener2s ()

public Set<RequestListener> getRequestListeners ()

public DiskCacheConfig getSmallImageDiskCacheConfig ()

public boolean isDiskCacheEnabled ()

public boolean isDownsampleEnabled ()

public boolean isResizeAndRotateEnabledForNetwork ()

public static ImagePipelineConfig.Builder newBuilder (Context context)