java.lang.Object |
↳ |
com.facebook.imagepipeline.producers.NetworkFetchProducer |
Class Overview
A producer to actually fetch images from the network.
Downloaded bytes may be passed to the consumer as they are downloaded, but not more often than
#TIME_BETWEEN_PARTIAL_RESULTS_MS.
Clients should provide an instance of NetworkFetcher
to make use of their networking
stack. Use HttpUrlConnectionNetworkFetcher
as a model.
Summary
[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()
|
|
From interface
com.facebook.imagepipeline.producers.Producer
|
Constants
public
static
final
String
INTERMEDIATE_RESULT_PRODUCER_EVENT
Constant Value:
"intermediate_result"
public
static
final
String
PRODUCER_NAME
Constant Value:
"NetworkFetchProducer"
Fields
Public Constructors
Public Methods
Protected Methods
protected
static
float
calculateProgress
(int downloaded, int total)
protected
long
getSystemUptime
()
protected
void
onResponse
(FetchState fetchState, InputStream responseData, int responseContentLength)