public class

ProducerSequenceFactory

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

Summary

Public Constructors
ProducerSequenceFactory(ProducerFactory producerFactory, NetworkFetcher networkFetcher, boolean resizeAndRotateEnabledForNetwork, boolean webpSupportEnabled, ThreadHandoffProducerQueue threadHandoffProducerQueue, boolean useDownsamplingRatio)
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>> 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 (ProducerFactory producerFactory, NetworkFetcher networkFetcher, boolean resizeAndRotateEnabledForNetwork, boolean webpSupportEnabled, ThreadHandoffProducerQueue threadHandoffProducerQueue, boolean useDownsamplingRatio)

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>> 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.