public interface

Producer

com.facebook.imagepipeline.producers.Producer<T>
Known Indirect Subclasses

Class Overview

Building block for image processing in the image pipeline.

Execution of image request consists of multiple different tasks such as network fetch, disk caching, memory caching, decoding, applying transformations etc. Producer represents single task whose result is an instance of T. Breaking entire request into sequence of Producers allows us to construct different requests while reusing the same blocks.

Producer supports multiple values and streaming.

Summary

Public Methods
abstract void produceResults(Consumer<T> consumer, ProducerContext context)
Start producing results for given context.

Public Methods

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

Start producing results for given context. Provided consumer is notified whenever progress is made (new value is ready or error occurs).