Back to Fresco

ThumbnailProducer

docs/javadoc/reference/com/facebook/imagepipeline/producers/ThumbnailProducer.html

3.6.020.1 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

Summary: Methods | Inherited Methods | [Expand All]

public interface

ThumbnailProducer

implements Producer<T>

| com.facebook.imagepipeline.producers.ThumbnailProducer<T> |

| Known Indirect Subclasses

LocalContentUriThumbnailFetchProducer, LocalExifThumbnailProducer

| LocalContentUriThumbnailFetchProducer | Represents a local content Uri fetch producer. | | LocalExifThumbnailProducer | A producer that retrieves exif thumbnails. |

|

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
Checks whether the producer may be able to produce images of the specified size.

| [Expand] Inherited Methods | | --- | | From interface com.facebook.imagepipeline.producers.Producer

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

|

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

+Generated by Doclava. +