public static class

ImagePipelineExperiments.Builder

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.core.ImagePipelineExperiments.Builder

Summary

Public Constructors
Builder(ImagePipelineConfig.Builder configBuilder)
Public Methods
ImagePipelineExperiments build()
ImagePipelineConfig.Builder setDecodeCancellationEnabled(boolean decodeCancellationEnabled)
If true we cancel decoding jobs when the related request has been cancelled
ImagePipelineConfig.Builder setExternalCreatedBitmapLogEnabled(boolean externalCreatedBitmapLogEnabled)
ImagePipelineConfig.Builder setForceSmallCacheThresholdBytes(int forceSmallCacheThresholdBytes)
This method is deprecated. This experiment will not be promoted to the main config and will soon be removed.
ImagePipelineConfig.Builder setMediaIdExtractor(MediaIdExtractor mediaIdExtractor)
Sets experimental media ID extractor to pull IDs from URIs.
ImagePipelineConfig.Builder setMediaVariationsIndexEnabled(Supplier<Boolean> mediaVariationsIndexEnabled)
If true, this will allow the image pipeline to keep an index of the ID in each request's MediaVariations object (if present) to possibly provide fallback images which are present in cache, without the need to explicitly provide alternative variants of the image in the request.
ImagePipelineConfig.Builder setSuppressBitmapPrefetching(boolean suppressBitmapPrefetching)
ImagePipelineConfig.Builder setUseDownsampligRatioForResizing(boolean useDownsamplingRatioForResizing)
ImagePipelineConfig.Builder setWebpBitmapFactory(WebpBitmapFactory webpBitmapFactory)
ImagePipelineConfig.Builder setWebpErrorLogger(WebpBitmapFactory.WebpErrorLogger webpErrorLogger)
ImagePipelineConfig.Builder setWebpSupportEnabled(boolean webpSupportEnabled)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder (ImagePipelineConfig.Builder configBuilder)

Public Methods

public ImagePipelineExperiments build ()

public ImagePipelineConfig.Builder setDecodeCancellationEnabled (boolean decodeCancellationEnabled)

If true we cancel decoding jobs when the related request has been cancelled

Parameters
decodeCancellationEnabled If true the decoding of cancelled requests are cancelled
Returns
  • The Builder itself for chaining

public ImagePipelineConfig.Builder setExternalCreatedBitmapLogEnabled (boolean externalCreatedBitmapLogEnabled)

public ImagePipelineConfig.Builder setForceSmallCacheThresholdBytes (int forceSmallCacheThresholdBytes)

This method is deprecated.
This experiment will not be promoted to the main config and will soon be removed.

If this value is nonnegative, then all network-downloaded images below this size will be written to the small image cache.

This will require the image pipeline to do up to two disk reads, instead of one, before going out to network. Use only if this pattern makes sense for your application.

public ImagePipelineConfig.Builder setMediaIdExtractor (MediaIdExtractor mediaIdExtractor)

Sets experimental media ID extractor to pull IDs from URIs. This isn't currently recommended as a long-term collaborator but can be useful for identifying where media IDs would be most effective.

public ImagePipelineConfig.Builder setMediaVariationsIndexEnabled (Supplier<Boolean> mediaVariationsIndexEnabled)

If true, this will allow the image pipeline to keep an index of the ID in each request's MediaVariations object (if present) to possibly provide fallback images which are present in cache, without the need to explicitly provide alternative variants of the image in the request.

public ImagePipelineConfig.Builder setSuppressBitmapPrefetching (boolean suppressBitmapPrefetching)

public ImagePipelineConfig.Builder setUseDownsampligRatioForResizing (boolean useDownsamplingRatioForResizing)

public ImagePipelineConfig.Builder setWebpBitmapFactory (WebpBitmapFactory webpBitmapFactory)

public ImagePipelineConfig.Builder setWebpErrorLogger (WebpBitmapFactory.WebpErrorLogger webpErrorLogger)

public ImagePipelineConfig.Builder setWebpSupportEnabled (boolean webpSupportEnabled)