Package 

Class NetworkFetchProducer

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

    • Constructor Summary

      Constructors 
      Constructor Description
      NetworkFetchProducer(PooledByteBufferFactory pooledByteBufferFactory, ByteArrayPool byteArrayPool, NetworkFetcher networkFetcher)
    • Method Summary

      Modifier and Type Method Description
      void produceResults(Consumer<EncodedImage> consumer, ProducerContext context)
      • Methods inherited from class com.facebook.imagepipeline.producers.Producer

        produceResults
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NetworkFetchProducer

        NetworkFetchProducer(PooledByteBufferFactory pooledByteBufferFactory, ByteArrayPool byteArrayPool, NetworkFetcher networkFetcher)