-
public final class ImagePipelineExperiments.Builder
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ImagePipelineExperiments.Builder(ImagePipelineConfig.Builder configBuilder)
-
Method Summary
-
-
Constructor Detail
-
ImagePipelineExperiments.Builder
ImagePipelineExperiments.Builder(ImagePipelineConfig.Builder configBuilder)
-
-
Method Detail
-
setHandOffOnUiThreadOnly
final ImagePipelineExperiments.Builder setHandOffOnUiThreadOnly(Boolean handOffOnUiThreadOnly)
-
setStoreCacheEntrySize
final ImagePipelineExperiments.Builder setStoreCacheEntrySize(Boolean shouldStoreCacheEntrySize)
-
setIgnoreCacheSizeMismatch
final ImagePipelineExperiments.Builder setIgnoreCacheSizeMismatch(Boolean shouldIgnoreCacheSizeMismatch)
-
setWebpSupportEnabled
final ImagePipelineExperiments.Builder setWebpSupportEnabled(Boolean webpSupportEnabled)
-
setPrefetchShortcutEnabled
final ImagePipelineExperiments.Builder setPrefetchShortcutEnabled(Boolean prefetchShortcutEnabled)
-
shouldUseDecodingBufferHelper
final Boolean shouldUseDecodingBufferHelper()
-
setShouldUseDecodingBufferHelper
final ImagePipelineExperiments.Builder setShouldUseDecodingBufferHelper(Boolean shouldUseDecodingBufferHelper)
-
setUseDownsampligRatioForResizing
final ImagePipelineExperiments.Builder setUseDownsampligRatioForResizing(Boolean useDownsamplingRatioForResizing)
-
setPartialImageCachingEnabled
final ImagePipelineExperiments.Builder setPartialImageCachingEnabled(Boolean partialImageCachingEnabled)
Enables the caching of partial image data, for example if the request is cancelled or fails after some data has been received.
-
setDecodeCancellationEnabled
final ImagePipelineExperiments.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
-
setWebpErrorLogger
final ImagePipelineExperiments.Builder setWebpErrorLogger(WebpBitmapFactory.WebpErrorLogger webpErrorLogger)
-
setWebpBitmapFactory
final ImagePipelineExperiments.Builder setWebpBitmapFactory(WebpBitmapFactory webpBitmapFactory)
-
setBitmapPrepareToDraw
final ImagePipelineExperiments.Builder setBitmapPrepareToDraw(Boolean useBitmapPrepareToDraw, Integer minBitmapSizeBytes, Integer maxBitmapSizeBytes, Boolean preparePrefetch)
If enabled, the pipeline will call android.graphics.Bitmap.prepareToDraw after decoding. This potentially reduces lag on Android N+ as this step now happens async when the RendererThread is idle.
- Parameters:
useBitmapPrepareToDraw- set true for enabling prepareToDrawminBitmapSizeBytes- Bitmaps with a Bitmap.getByteCount smaller than this value are not uploadedmaxBitmapSizeBytes- Bitmaps with a Bitmap.getByteCount larger than this value are not uploadedpreparePrefetch- If this is true, also pre-fetching image requests will trigger the android.graphics.Bitmap.prepareToDraw call.
-
setBalancedAnimationStrategy
final ImagePipelineExperiments.Builder setBalancedAnimationStrategy(Boolean useBalancedAnimationStrategy)
Enable balance strategy between RAM and CPU for rendering bitmap animations (WebP, Gif)
-
setBalancedStrategyPreparationMs
final ImagePipelineExperiments.Builder setBalancedStrategyPreparationMs(Integer balancedStrategyPreparationMs)
Indicates needed ms to extract a frame using CPU
-
setAnimatedCacheMemoryPercentage
final ImagePipelineExperiments.Builder setAnimatedCacheMemoryPercentage(Integer animatedCacheMemoryPercentage)
Maximum heap memory percentage available for caching bitmaps from animated asset (WebP, Gif)
-
setMaxBitmapSize
final ImagePipelineExperiments.Builder setMaxBitmapSize(Integer maxBitmapSize)
Sets the maximum bitmap size use to compute the downsampling value when decoding Jpeg images.
-
setNativeCodeDisabled
final ImagePipelineExperiments.Builder setNativeCodeDisabled(Boolean nativeCodeDisabled)
If true, the pipeline will use alternative implementations without native code.
- Parameters:
nativeCodeDisabled- set true for disabling native implementation.
-
setProducerFactoryMethod
final ImagePipelineExperiments.Builder setProducerFactoryMethod(ImagePipelineExperiments.ProducerFactoryMethod producerFactoryMethod)
Stores an alternative method to instantiate the ProducerFactory. This allows experimenting with overridden producers.
-
setLazyDataSource
final ImagePipelineExperiments.Builder setLazyDataSource(Supplier<Boolean> lazyDataSource)
Stores an alternative lazy method to instantiate the data souce.
-
setGingerbreadDecoderEnabled
final ImagePipelineExperiments.Builder setGingerbreadDecoderEnabled(Boolean gingerbreadDecoderEnabled)
-
setShouldDownscaleFrameToDrawableDimensions
final ImagePipelineExperiments.Builder setShouldDownscaleFrameToDrawableDimensions(Boolean downscaleFrameToDrawableDimensions)
-
setSuppressBitmapPrefetchingSupplier
final ImagePipelineExperiments.Builder setSuppressBitmapPrefetchingSupplier(Supplier<Boolean> suppressBitmapPrefetchingSupplier)
-
setExperimentalThreadHandoffQueueEnabled
final ImagePipelineExperiments.Builder setExperimentalThreadHandoffQueueEnabled(Boolean experimentalThreadHandoffQueueEnabled)
-
setExperimentalMemoryType
final ImagePipelineExperiments.Builder setExperimentalMemoryType(Long MemoryType)
-
setKeepCancelledFetchAsLowPriority
final ImagePipelineExperiments.Builder setKeepCancelledFetchAsLowPriority(Boolean keepCancelledFetchAsLowPriority)
-
setDownsampleIfLargeBitmap
final ImagePipelineExperiments.Builder setDownsampleIfLargeBitmap(Boolean downsampleIfLargeBitmap)
-
setEncodedCacheEnabled
final ImagePipelineExperiments.Builder setEncodedCacheEnabled(Boolean encodedCacheEnabled)
-
setEnsureTranscoderLibraryLoaded
final ImagePipelineExperiments.Builder setEnsureTranscoderLibraryLoaded(Boolean ensureTranscoderLibraryLoaded)
-
setIsDiskCacheProbingEnabled
final ImagePipelineExperiments.Builder setIsDiskCacheProbingEnabled(Boolean isDiskCacheProbingEnabled)
-
setIsEncodedMemoryCacheProbingEnabled
final ImagePipelineExperiments.Builder setIsEncodedMemoryCacheProbingEnabled(Boolean isEncodedMemoryCacheProbingEnabled)
-
setTrackedKeysSize
final ImagePipelineExperiments.Builder setTrackedKeysSize(Integer trackedKeysSize)
-
setAllowDelay
final ImagePipelineExperiments.Builder setAllowDelay(Boolean allowDelay)
-
setAllowProgressiveOnPrefetch
final ImagePipelineExperiments.Builder setAllowProgressiveOnPrefetch(Boolean allowProgressiveOnPrefetch)
-
setAnimationRenderFpsLimit
final ImagePipelineExperiments.Builder setAnimationRenderFpsLimit(Integer animationRenderFpsLimit)
-
setCancelDecodeOnCacheMiss
final ImagePipelineExperiments.Builder setCancelDecodeOnCacheMiss(Boolean cancelDecodeOnCacheMiss)
-
setPlatformDecoderOptions
final ImagePipelineExperiments.Builder setPlatformDecoderOptions(PlatformDecoderOptions platformDecoderOptions)
-
build
final ImagePipelineExperiments build()
-
-
-
-