public class

NullProducer

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

Class Overview

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.

Summary

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

Public Constructors

public NullProducer ()

Public Methods

public 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).