public class

NetworkFetchProducer

extends Object
implements Producer<T>
java.lang.Object
   ↳ com.facebook.imagepipeline.producers.NetworkFetchProducer

Class Overview

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.

Summary

Constants
String INTERMEDIATE_RESULT_PRODUCER_EVENT
String PRODUCER_NAME
Public Constructors
NetworkFetchProducer(PooledByteBufferFactory pooledByteBufferFactory, ByteArrayPool byteArrayPool, NetworkFetcher networkFetcher)
Public Methods
void produceResults(Consumer<EncodedImage> consumer, ProducerContext context)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.producers.Producer

Constants

public static final String INTERMEDIATE_RESULT_PRODUCER_EVENT

Constant Value: "intermediate_result"

public static final String PRODUCER_NAME

Constant Value: "NetworkFetchProducer"

Public Constructors

public NetworkFetchProducer (PooledByteBufferFactory pooledByteBufferFactory, ByteArrayPool byteArrayPool, NetworkFetcher networkFetcher)

Public Methods

public void produceResults (Consumer<EncodedImage> consumer, ProducerContext context)