public static interface

NetworkFetcher.Callback

com.facebook.imagepipeline.producers.NetworkFetcher.Callback

Class Overview

Callback used to inform the network fetch producer.

Summary

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.

Public Methods

public abstract void onCancellation ()

Called upon a cancellation of the request.

public abstract void onFailure (Throwable throwable)

Called upon a failure in the network stack.

Parameters
throwable the cause of failure

public abstract void onResponse (InputStream response, int responseLength)

Called upon a response from the network stack.

Parameters
response the InputStream for the data
responseLength the length of the data if known, -1 otherwise
Throws
IOException