Back to Fresco

FetchState

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

3.6.023.8 KB
Original Source

Fresco

|

|

Packages | Classes

Interfaces

Classes

Annotations

Packages | Classes

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

public class

FetchState

extends Object

| java.lang.Object | | ↳ | com.facebook.imagepipeline.producers.FetchState |

| Known Direct Subclasses

HttpUrlConnectionNetworkFetcher.HttpUrlConnectionNetworkFetchState, OkHttpNetworkFetcher.OkHttpNetworkFetchState, PriorityNetworkFetcher.PriorityFetchState<FETCH_STATE extends FetchState>, VolleyNetworkFetcher.VolleyNetworkFetchState

| HttpUrlConnectionNetworkFetcher.HttpUrlConnectionNetworkFetchState | | | OkHttpNetworkFetcher.OkHttpNetworkFetchState | | | PriorityNetworkFetcher.PriorityFetchState<FETCH_STATE extends FetchState> | | | VolleyNetworkFetcher.VolleyNetworkFetchState | |

|

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
Public Methods
Consumer<EncodedImage>
ProducerContext
String
long
ProducerListener2
int
BytesRange
Uri
void
void
EXPERIMENTAL: Allows the fetcher to set extra status flags to be included in calls to onNewResult(Object, int).
void
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

| 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() |

|

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

+Generated by Doclava. +