Back to Fresco

QualifiedResourceFetchProducer

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

3.6.022.8 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

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

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
Public Constructors
Protected Methods
EncodedImage
Gets an encoded image from the local resource.
String

| [Expand] Inherited Methods | | --- | | From class com.facebook.imagepipeline.producers.LocalFetchProducer

| EncodedImage | getByteBufferBackedEncodedImage(InputStream inputStream, int length) Creates a memory-backed encoded image from the stream. | | abstract EncodedImage | getEncodedImage(ImageRequest imageRequest) Gets an encoded image from the local resource. | | EncodedImage | getEncodedImage(InputStream inputStream, int length) | | abstract String | getProducerName() | | void | produceResults(Consumer<EncodedImage> consumer, ProducerContext producerContext) |

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

|

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

+Generated by Doclava. +