| java.lang.Object | |
| ↳ | com.facebook.imagepipeline.producers.BaseNetworkFetcher<FETCH_STATE extends com.facebook.imagepipeline.producers.FetchState> |
Known Direct Subclasses
|
Base class for NetworkFetcher.
Intermediate results are propagated.
{#code getExtraMap} returns null.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BaseNetworkFetcher() | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Map<String, String> |
getExtraMap(FETCH_STATE fetchState, int byteSize)
Gets a map containing extra parameters to pass to the listeners.
| ||||||||||
| void |
onFetchCompletion(FETCH_STATE fetchState, int byteSize)
Called after the fetch completes.
| ||||||||||
| boolean |
shouldPropagate(FETCH_STATE fetchState)
Gets whether the intermediate results should be propagated.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.facebook.imagepipeline.producers.NetworkFetcher
| |||||||||||
Gets a map containing extra parameters to pass to the listeners.
Returning map is optional and is useful for instrumentation purposes.
This map won't be modified by the caller.
| fetchState | the fetch-specific state |
|---|---|
| byteSize | size of the data in bytes |
Called after the fetch completes.
Implementing this method is optional and is useful for instrumentation purposes.
| fetchState | the fetch-specific state |
|---|---|
| byteSize | size of the data in bytes |
Gets whether the intermediate results should be propagated.
In addition to the requirements of this method, intermediate results are throttled so that a maximum of one every 100 ms is propagated. This is to conserve CPU and other resources.
Not applicable if progressive rendering is disabled or not supported for this image.
| fetchState | the fetch-specific state |
|---|