Package 

Interface ThumbnailProducer

  • All Implemented Interfaces:
    com.facebook.imagepipeline.producers.Producer

    
    public interface ThumbnailProducer<T extends Object>
     implements Producer<T>
                        

    Implemented producers can be queried for whether they are likely to be able to produce a result of the desired size.

    produceResults(Consumer, ProducerContext) may send a null image to the consumer, even if an image is available, if the ultimate image is smaller than wanted. This may happen even if the producer thought it would be able to satisfy the request.

    • Method Summary

      Modifier and Type Method Description
      abstract Boolean canProvideImageForSize(ResizeOptions resizeOptions) Checks whether the producer may be able to produce images of the specified size.
      • Methods inherited from class com.facebook.imagepipeline.producers.ThumbnailProducer

        produceResults
      • Methods inherited from class java.lang.Object

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

      • canProvideImageForSize

         abstract Boolean canProvideImageForSize(ResizeOptions resizeOptions)

        Checks whether the producer may be able to produce images of the specified size. This makes no promise about being able to produce images for a particular source, only generally being able to produce output of the desired resolution.

        Parameters:
        resizeOptions - the resize options from the current request