java.lang.Object | |
↳ | com.facebook.imagepipeline.producers.FetchState |
Known Direct Subclasses |
Used by NetworkFetcher
to encapsulate the state of one network fetch.
Implementations can subclass this to store additional fetch-scoped fields.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FetchState(Consumer<EncodedImage> consumer, ProducerContext context) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Consumer<EncodedImage> | getConsumer() | ||||||||||
ProducerContext | getContext() | ||||||||||
String | getId() | ||||||||||
long | getLastIntermediateResultTimeMs() | ||||||||||
ProducerListener2 | getListener() | ||||||||||
int | getOnNewResultStatusFlags() | ||||||||||
BytesRange | getResponseBytesRange() | ||||||||||
Uri | getUri() | ||||||||||
void | setLastIntermediateResultTimeMs(long lastIntermediateResultTimeMs) | ||||||||||
void |
setOnNewResultStatusFlags(int onNewResultStatusFlags)
EXPERIMENTAL: Allows the fetcher to set extra status flags to be included in calls to
onNewResult(Object, int) . | ||||||||||
void |
setResponseBytesRange(BytesRange bytesRange)
EXPERIMENTAL: Allows the fetcher to identify that the reponse is for an imcomplete portion of
the whole image by defining the range of bytes being provided.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
EXPERIMENTAL: Allows the fetcher to set extra status flags to be included in calls to onNewResult(Object, int)
.
EXPERIMENTAL: Allows the fetcher to identify that the reponse is for an imcomplete portion of the whole image by defining the range of bytes being provided.