public class

ImagePipelineConfig

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

Class Overview

Master 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
Bitmap.Config getBitmapConfig()
Supplier<MemoryCacheParams> getBitmapMemoryCacheParamsSupplier()
CountingMemoryCache.CacheTrimStrategy getBitmapMemoryCacheTrimStrategy()
CacheKeyFactory getCacheKeyFactory()
Context getContext()
static ImagePipelineConfig.DefaultImageRequestConfig getDefaultImageRequestConfig()
Supplier<MemoryCacheParams> getEncodedMemoryCacheParamsSupplier()
ExecutorSupplier getExecutorSupplier()
ImagePipelineExperiments getExperiments()
FileCacheFactory getFileCacheFactory()
ImageCacheStatsTracker getImageCacheStatsTracker()
ImageDecoder getImageDecoder()
ImageDecoderConfig getImageDecoderConfig()
Supplier<Boolean> getIsPrefetchEnabledSupplier()
DiskCacheConfig getMainDiskCacheConfig()
MemoryTrimmableRegistry getMemoryTrimmableRegistry()
NetworkFetcher getNetworkFetcher()
PlatformBitmapFactory getPlatformBitmapFactory()
PoolFactory getPoolFactory()
ProgressiveJpegConfig getProgressiveJpegConfig()
Set<RequestListener> getRequestListeners()
DiskCacheConfig getSmallImageDiskCacheConfig()
boolean isDownsampleEnabled()
boolean isResizeAndRotateEnabledForNetwork()
static ImagePipelineConfig.Builder newBuilder(Context context)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public Bitmap.Config getBitmapConfig ()

public Supplier<MemoryCacheParams> getBitmapMemoryCacheParamsSupplier ()

public CountingMemoryCache.CacheTrimStrategy getBitmapMemoryCacheTrimStrategy ()

public CacheKeyFactory getCacheKeyFactory ()

public Context getContext ()

public static ImagePipelineConfig.DefaultImageRequestConfig getDefaultImageRequestConfig ()

public Supplier<MemoryCacheParams> getEncodedMemoryCacheParamsSupplier ()

public ExecutorSupplier getExecutorSupplier ()

public ImagePipelineExperiments getExperiments ()

public FileCacheFactory getFileCacheFactory ()

public ImageCacheStatsTracker getImageCacheStatsTracker ()

public ImageDecoder getImageDecoder ()

public ImageDecoderConfig getImageDecoderConfig ()

public Supplier<Boolean> getIsPrefetchEnabledSupplier ()

public DiskCacheConfig getMainDiskCacheConfig ()

public MemoryTrimmableRegistry getMemoryTrimmableRegistry ()

public NetworkFetcher getNetworkFetcher ()

public PlatformBitmapFactory getPlatformBitmapFactory ()

public PoolFactory getPoolFactory ()

public ProgressiveJpegConfig getProgressiveJpegConfig ()

public Set<RequestListener> getRequestListeners ()

public DiskCacheConfig getSmallImageDiskCacheConfig ()

public boolean isDownsampleEnabled ()

public boolean isResizeAndRotateEnabledForNetwork ()

public static ImagePipelineConfig.Builder newBuilder (Context context)