-
public interface NetworkFetcher.CallbackCallback used to inform the network fetch producer.
-
-
Method Summary
Modifier and Type Method Description abstract voidonResponse(InputStream response, int responseLength)Called upon a response from the network stack. abstract voidonFailure(Throwable throwable)Called upon a failure in the network stack. abstract voidonCancellation()Called upon a cancellation of the request. -
-
Method Detail
-
onResponse
abstract void onResponse(InputStream response, int responseLength)
Called upon a response from the network stack.
- Parameters:
response- the InputStream for the dataresponseLength- the length of the data if known, -1 otherwise
-
onFailure
abstract void onFailure(Throwable throwable)
Called upon a failure in the network stack.
- Parameters:
throwable- the cause of failure
-
onCancellation
abstract void onCancellation()
Called upon a cancellation of the request.
-
-
-
-