-
- All Implemented Interfaces:
-
com.facebook.imagepipeline.producers.Producer
public class NetworkFetchProducer implements Producer<EncodedImage>
A producer to actually fetch images from the network.
Downloaded bytes may be passed to the consumer as they are downloaded, but not more often than TIME_BETWEEN_PARTIAL_RESULTS_MS.
Clients should provide an instance of NetworkFetcher to make use of their networking stack. Use HttpUrlConnectionNetworkFetcher as a model.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringPRODUCER_NAMEpublic final static StringINTERMEDIATE_RESULT_PRODUCER_EVENT
-
Constructor Summary
Constructors Constructor Description NetworkFetchProducer(PooledByteBufferFactory pooledByteBufferFactory, ByteArrayPool byteArrayPool, NetworkFetcher networkFetcher)
-
Method Summary
Modifier and Type Method Description voidproduceResults(Consumer<EncodedImage> consumer, ProducerContext context)-
-
Constructor Detail
-
NetworkFetchProducer
NetworkFetchProducer(PooledByteBufferFactory pooledByteBufferFactory, ByteArrayPool byteArrayPool, NetworkFetcher networkFetcher)
-
-
Method Detail
-
produceResults
void produceResults(Consumer<EncodedImage> consumer, ProducerContext context)
-
-
-
-