Back to Fresco

LocalExifThumbnailProducer

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

3.6.022.1 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

Summary: Constants | Ctors | Methods | Inherited Methods | [Expand All]

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

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

| | From interface com.facebook.imagepipeline.producers.Producer

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

| | From interface com.facebook.imagepipeline.producers.ThumbnailProducer

| abstract boolean | canProvideImageForSize(ResizeOptions resizeOptions) Checks whether the producer may be able to produce images of the specified size. |

|

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)

+Generated by Doclava. +