public class

ProducerSequenceFactory

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

Summary

Public Constructors
ProducerSequenceFactory(ContentResolver contentResolver, ProducerFactory producerFactory, NetworkFetcher networkFetcher, boolean resizeAndRotateEnabledForNetwork, boolean webpSupportEnabled, ThreadHandoffProducerQueue threadHandoffProducerQueue, boolean downSampleEnabled, boolean useBitmapPrepareToDraw, boolean partialImageCachingEnabled, boolean diskCacheEnabled, ImageTranscoderFactory imageTranscoderFactory, boolean isEncodedMemoryCacheProbingEnabled, boolean isDiskCacheProbingEnabled, boolean useCombinedNetworkAndCacheProducer, boolean allowDelay)
Public Methods
Producer<Void> getDecodedImagePrefetchProducerSequence(ImageRequest imageRequest)
Returns a sequence that can be used for a prefetch request for a decoded image.
Producer<CloseableReference<CloseableImage>> getDecodedImageProducerSequence(ImageRequest imageRequest)
Returns a sequence that can be used for a request for a decoded image.
Producer<Void> getEncodedImagePrefetchProducerSequence(ImageRequest imageRequest)
Returns a sequence that can be used for a prefetch request for an encoded image.
Producer<CloseableReference<PooledByteBuffer>> getEncodedImageProducerSequence(ImageRequest imageRequest)
Returns a sequence that can be used for a request for an encoded image from either network or local files.
Producer<CloseableReference<PooledByteBuffer>> getLocalContentUriFetchEncodedImageProducerSequence()
Returns a sequence that can be used for a request for an encoded image from a local content uri.
Producer<CloseableReference<PooledByteBuffer>> getLocalFileFetchEncodedImageProducerSequence()
Returns a sequence that can be used for a request for an encoded image from a local file.
Producer<CloseableReference<PooledByteBuffer>> getNetworkFetchEncodedImageProducerSequence()
Returns a sequence that can be used for a request for an encoded image from network.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProducerSequenceFactory (ContentResolver contentResolver, ProducerFactory producerFactory, NetworkFetcher networkFetcher, boolean resizeAndRotateEnabledForNetwork, boolean webpSupportEnabled, ThreadHandoffProducerQueue threadHandoffProducerQueue, boolean downSampleEnabled, boolean useBitmapPrepareToDraw, boolean partialImageCachingEnabled, boolean diskCacheEnabled, ImageTranscoderFactory imageTranscoderFactory, boolean isEncodedMemoryCacheProbingEnabled, boolean isDiskCacheProbingEnabled, boolean useCombinedNetworkAndCacheProducer, boolean allowDelay)

Public Methods

public Producer<Void> getDecodedImagePrefetchProducerSequence (ImageRequest imageRequest)

Returns a sequence that can be used for a prefetch request for a decoded image.

Parameters
imageRequest the request that will be submitted
Returns
  • the sequence that should be used to process the request

public Producer<CloseableReference<CloseableImage>> getDecodedImageProducerSequence (ImageRequest imageRequest)

Returns a sequence that can be used for a request for a decoded image.

Parameters
imageRequest the request that will be submitted
Returns
  • the sequence that should be used to process the request

public Producer<Void> getEncodedImagePrefetchProducerSequence (ImageRequest imageRequest)

Returns a sequence that can be used for a prefetch request for an encoded image.

Guaranteed to return the same sequence as getEncodedImageProducerSequence(request), except that it is pre-pended with a SwallowResultProducer.

Parameters
imageRequest the request that will be submitted
Returns
  • the sequence that should be used to process the request

public Producer<CloseableReference<PooledByteBuffer>> getEncodedImageProducerSequence (ImageRequest imageRequest)

Returns a sequence that can be used for a request for an encoded image from either network or local files.

Parameters
imageRequest the request that will be submitted
Returns
  • the sequence that should be used to process the request

public Producer<CloseableReference<PooledByteBuffer>> getLocalContentUriFetchEncodedImageProducerSequence ()

Returns a sequence that can be used for a request for an encoded image from a local content uri.

public Producer<CloseableReference<PooledByteBuffer>> getLocalFileFetchEncodedImageProducerSequence ()

Returns a sequence that can be used for a request for an encoded image from a local file.

public Producer<CloseableReference<PooledByteBuffer>> getNetworkFetchEncodedImageProducerSequence ()

Returns a sequence that can be used for a request for an encoded image from network.