public class

FetchState

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.producers.FetchState
Known Direct Subclasses

Class Overview

Used by NetworkFetcher to encapsulate the state of one network fetch.

Implementations can subclass this to store additional fetch-scoped fields.

Summary

Public Constructors
FetchState(Consumer<EncodedImage> consumer, ProducerContext context)
Public Methods
Consumer<EncodedImage> getConsumer()
ProducerContext getContext()
String getId()
long getLastIntermediateResultTimeMs()
ProducerListener 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

Public Constructors

public FetchState (Consumer<EncodedImage> consumer, ProducerContext context)

Public Methods

public Consumer<EncodedImage> getConsumer ()

public ProducerContext getContext ()

public String getId ()

public long getLastIntermediateResultTimeMs ()

public ProducerListener getListener ()

public int getOnNewResultStatusFlags ()

public BytesRange getResponseBytesRange ()

public Uri getUri ()

public void setLastIntermediateResultTimeMs (long lastIntermediateResultTimeMs)

public void setOnNewResultStatusFlags (int onNewResultStatusFlags)

EXPERIMENTAL: Allows the fetcher to set extra status flags to be included in calls to onNewResult(Object, int).

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