| com.facebook.imagepipeline.producers.ProducerContext |
Known Indirect Subclasses
|
Used to pass context information to producers.
Object implementing this interface is passed to all producers participating in pipeline request . Its responsibility is to instruct producers which image should be fetched/decoded/resized/cached etc. This class also handles request cancellation.
In order to be notified when cancellation is requested, a producer should use the
runOnCancellationRequested method which takes an instance of Runnable and executes it
when the pipeline client cancels the image request.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 String | getId() | ||||||||||
| abstract ImageRequest | getImageRequest() | ||||||||||
| abstract ProducerListener | getListener() | ||||||||||
| abstract ImageRequest.RequestLevel | getLowestPermittedRequestLevel() | ||||||||||
| abstract Priority | getPriority() | ||||||||||
| abstract boolean | isIntermediateResultExpected() | ||||||||||
| abstract boolean | isPrefetch() | ||||||||||
Adds callbacks to the set of callbacks that are executed at various points during the processing of a request.
| callbacks | callbacks to be executed |
|---|
ImageRequest.RequestLevel