public interface

ThumbnailProducer

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

Class Overview

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.

Summary

Public Methods
abstract boolean canProvideImageForSize(ResizeOptions resizeOptions)
Checks whether the producer may be able to produce images of the specified size.
[Expand]
Inherited Methods
From interface com.facebook.imagepipeline.producers.Producer

Public Methods

public 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
Returns
  • true if the producer can meet these needs