java.lang.Object | |
↳ | com.facebook.imagepipeline.core.ImagePipelineExperiments.Builder |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public boolean | mBitmapPrepareToDrawForPrefetch |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder(ImagePipelineConfig.Builder configBuilder) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ImagePipelineExperiments | build() | ||||||||||
boolean | isPartialImageCachingEnabled() | ||||||||||
ImagePipelineConfig.Builder |
setBitmapPrepareToDraw(boolean useBitmapPrepareToDraw, int minBitmapSizeBytes, int maxBitmapSizeBytes, boolean preparePrefetch)
If enabled, the pipeline will call
prepareToDraw() after
decoding. | ||||||||||
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 |
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 |
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.
| ||||||||||
ImagePipelineConfig.Builder |
setProducerFactoryMethod(ImagePipelineExperiments.ProducerFactoryMethod producerFactoryMethod)
Stores an alternative method to instantiate the
ProducerFactory . | ||||||||||
ImagePipelineConfig.Builder |
setSmartResizingEnabled(Supplier<Boolean> smartResizingEnabled)
Smart resizing combines transcoding and downsampling depending on the image format.
| ||||||||||
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
If enabled, the pipeline will call prepareToDraw()
after
decoding. This potentially reduces lag on Android N+ as this step now happens async when the
RendererThread is idle.
useBitmapPrepareToDraw | set true for enabling prepareToDraw |
---|---|
minBitmapSizeBytes | Bitmaps with a getByteCount() smaller than this
value are not uploaded |
maxBitmapSizeBytes | Bitmaps with a getByteCount() larger than this value
are not uploaded |
preparePrefetch | If this is true, also pre-fetching image requests will trigger the
prepareToDraw() call. |
If true we cancel decoding jobs when the related request has been cancelled
decodeCancellationEnabled | If true the decoding of cancelled requests are cancelled |
---|
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.
Enables the caching of partial image data, for example if the request is cancelled or fails after some data has been received.
Stores an alternative method to instantiate the ProducerFactory
. This allows
experimenting with overridden producers.
Smart resizing combines transcoding and downsampling depending on the image format.
smartResizingEnabled | true if smart resizing should be enabled |
---|