com.facebook.imagepipeline.producers.NetworkFetcher.Callback |
Callback used to inform the network fetch producer.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
onCancellation()
Called upon a cancellation of the request.
| ||||||||||
abstract void |
onFailure(Throwable throwable)
Called upon a failure in the network stack.
| ||||||||||
abstract void |
onResponse(InputStream response, int responseLength)
Called upon a response from the network stack.
|
Called upon a cancellation of the request.
Called upon a failure in the network stack.
throwable | the cause of failure |
---|
Called upon a response from the network stack.
response | the InputStream for the data |
---|---|
responseLength | the length of the data if known, -1 otherwise |
IOException |
---|