Back to Fresco

SettableProducerContext

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

3.6.035.6 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

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

public class

SettableProducerContext

extends BaseProducerContext

| java.lang.Object | | ↳ | com.facebook.imagepipeline.producers.BaseProducerContext | | | ↳ | com.facebook.imagepipeline.producers.SettableProducerContext |

Class Overview

ProducerContext that allows the client to change its internal state.

Summary

| [Expand] Inherited Fields | | --- | | From class com.facebook.imagepipeline.producers.BaseProducerContext

| public static final Set<String> | INITIAL_KEYS | |

|

Public Constructors
Public Methods
void
Set whether intermediate result is expected or not
void
Set whether the request is a prefetch request or not.
void
Set the priority of the request

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

| void | addCallbacks(ProducerContextCallbacks callbacks) Adds callbacks to the set of callbacks that are executed at various points during the processing of a request. | | static void | callOnCancellationRequested(List<ProducerContextCallbacks> callbacks) Calls onCancellationRequested on each element of the list. | | static void | callOnIsIntermediateResultExpectedChanged(List<ProducerContextCallbacks> callbacks) Calls onIsIntermediateResultExpected on each element of the list. | | static void | callOnIsPrefetchChanged(List<ProducerContextCallbacks> callbacks) Calls onIsPrefetchChanged on each element of the list. | | static void | callOnPriorityChanged(List<ProducerContextCallbacks> callbacks) Calls onPriorityChanged on each element of the list. | | void | cancel() Cancels the request processing and calls appropriate callbacks. | | synchronized List<ProducerContextCallbacks> | cancelNoCallbacks() Marks this ProducerContext as cancelled. | | Object | getCallerContext() | | EncodedImageOrigin | getEncodedImageOrigin() | | <T> T | getExtra(String key) | | <E> E | getExtra(String key, E valueIfNotFound) | | Map<String, Object> | getExtras() | | String | getId() | | ImagePipelineConfig | getImagePipelineConfig() | | ImageRequest | getImageRequest() | | ImageRequest.RequestLevel | getLowestPermittedRequestLevel() | | synchronized Priority | getPriority() | | ProducerListener2 | getProducerListener() | | String | getUiComponentId() | | synchronized boolean | isCancelled() | | synchronized boolean | isIntermediateResultExpected() | | synchronized boolean | isPrefetch() | | void | putExtras(Map<String, ?> extras) | | void | putOriginExtra(String origin) Helper to set ORIGIN | | void | putOriginExtra(String origin, String subcategory) Helper to set ORIGIN and ORIGIN_SUBCATEGORY | | void | setEncodedImageOrigin(EncodedImageOrigin encodedImageOrigin) | | void | setExtra(String key, Object value) | | synchronized List<ProducerContextCallbacks> | setIsIntermediateResultExpectedNoCallbacks(boolean isIntermediateResultExpected) Changes isIntermediateResultExpected property. | | synchronized List<ProducerContextCallbacks> | setIsPrefetchNoCallbacks(boolean isPrefetch) Changes isPrefetch property. | | synchronized List<ProducerContextCallbacks> | setPriorityNoCallbacks(Priority priority) Changes priority. |

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

| abstract void | addCallbacks(ProducerContextCallbacks callbacks) Adds callbacks to the set of callbacks that are executed at various points during the processing of a request. | | abstract Object | getCallerContext() | | abstract EncodedImageOrigin | getEncodedImageOrigin() | | abstract <E> E | getExtra(String key, E valueIfNotFound) | | abstract <E> E | getExtra(String key) | | abstract Map<String, Object> | getExtras() | | abstract String | getId() | | abstract ImagePipelineConfig | getImagePipelineConfig() | | abstract ImageRequest | getImageRequest() | | abstract ImageRequest.RequestLevel | getLowestPermittedRequestLevel() | | abstract Priority | getPriority() | | abstract ProducerListener2 | getProducerListener() | | abstract String | getUiComponentId() | | abstract boolean | isIntermediateResultExpected() | | abstract boolean | isPrefetch() | | abstract void | putExtras(Map<String, ?> extras) | | abstract void | putOriginExtra(String origin) Helper to set ORIGIN | | abstract void | putOriginExtra(String origin, String subcategory) Helper to set ORIGIN and ORIGIN_SUBCATEGORY | | abstract void | setEncodedImageOrigin(EncodedImageOrigin encodedImageOrigin) | | abstract <E> void | setExtra(String key, E value) |

|

Public Constructors

public SettableProducerContext(ProducerContext context)

public SettableProducerContext(ImageRequest overrideRequest, ProducerContext context)

public SettableProducerContext(ImageRequest imageRequest, String id, ProducerListener2 producerListener, Object callerContext, ImageRequest.RequestLevel lowestPermittedRequestLevel, boolean isPrefetch, boolean isIntermediateResultExpected, Priority priority, ImagePipelineConfig imagePipelineConfig)

public SettableProducerContext(ImageRequest imageRequest, String id, String uiComponentId, ProducerListener2 producerListener, Object callerContext, ImageRequest.RequestLevel lowestPermittedRequestLevel, boolean isPrefetch, boolean isIntermediateResultExpected, Priority priority, ImagePipelineConfig imagePipelineConfig)

Public Methods

public void setIsIntermediateResultExpected(boolean isIntermediateResultExpected)

Set whether intermediate result is expected or not

public void setIsPrefetch(boolean isPrefetch)

Set whether the request is a prefetch request or not.

public void setPriority(Priority priority)

Set the priority of the request

+Generated by Doclava. +