public class

LocalExifThumbnailProducer

extends Object
implements ThumbnailProducer<T>
java.lang.Object
   ↳ com.facebook.imagepipeline.producers.LocalExifThumbnailProducer

Class Overview

A producer that retrieves exif thumbnails.

At present, these thumbnails are retrieved on the java heap before being put into native memory.

Summary

Constants
String PRODUCER_NAME
Public Constructors
LocalExifThumbnailProducer(Executor executor, PooledByteBufferFactory pooledByteBufferFactory, ContentResolver contentResolver)
Public Methods
boolean canProvideImageForSize(ResizeOptions resizeOptions)
Checks whether the producer may be able to produce images of the specified size.
void produceResults(Consumer<EncodedImage> consumer, ProducerContext producerContext)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.facebook.imagepipeline.producers.Producer
From interface com.facebook.imagepipeline.producers.ThumbnailProducer

Constants

public static final String PRODUCER_NAME

Constant Value: "LocalExifThumbnailProducer"

Public Constructors

public LocalExifThumbnailProducer (Executor executor, PooledByteBufferFactory pooledByteBufferFactory, ContentResolver contentResolver)

Public Methods

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

In this case, assumptions are made about the common size of EXIF thumbnails which is that they may be up to 512 pixels in each dimension.

Parameters
resizeOptions the resize options from the current request
Returns
  • true if the producer can meet these needs

public void produceResults (Consumer<EncodedImage> consumer, ProducerContext producerContext)