public class

QualifiedResourceFetchProducer

extends LocalFetchProducer
java.lang.Object
   ↳ com.facebook.imagepipeline.producers.LocalFetchProducer
     ↳ com.facebook.imagepipeline.producers.QualifiedResourceFetchProducer

Class Overview

The QualifiedResourceFetchProducer uses the ContentResolver to allow fetching resources that might not be part of the application's package.

Summary

Constants
String PRODUCER_NAME
Public Constructors
QualifiedResourceFetchProducer(Executor executor, PooledByteBufferFactory pooledByteBufferFactory, ContentResolver contentResolver)
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

Constants

public static final String PRODUCER_NAME

Constant Value: "QualifiedResourceFetchProducer"

Public Constructors

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

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