java.lang.Object | |
↳ | com.facebook.imagepipeline.producers.NullProducer<T> |
Producer that never produces anything, but just returns null.
This producer can be used to terminate a sequence, e.g. for a bitmap cache get only sequence, just use BitmapMemoryCacheGetProducer followed by NullProducer.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NullProducer() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
produceResults(Consumer<T> consumer, ProducerContext context)
Start producing results for given context.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.facebook.imagepipeline.producers.Producer
|
Start producing results for given context. Provided consumer is notified whenever progress is made (new value is ready or error occurs).