public class

LocalContentUriThumbnailFetchProducer

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

Class Overview

Represents a local content Uri fetch producer.

Summary

Constants
String PRODUCER_NAME
Public Constructors
LocalContentUriThumbnailFetchProducer(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.
Protected Methods
EncodedImage getEncodedImage(ImageRequest imageRequest)
Gets an encoded image from the local resource.
String getProducerName()
[Expand]
Inherited Methods
From class com.facebook.imagepipeline.producers.LocalFetchProducer
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: "LocalContentUriThumbnailFetchProducer"

Public Constructors

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

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

Protected Methods

protected EncodedImage getEncodedImage (ImageRequest imageRequest)

Gets an encoded image from the local resource. It can be either backed by a FileInputStream or a PooledByteBuffer

Parameters
imageRequest request that includes the local resource that is being accessed
Throws
IOException

protected String getProducerName ()

Returns
  • name of the Producer