Package 

Interface NetworkFetcher.Callback

    • Method Summary

      Modifier and Type Method Description
      abstract void onResponse(InputStream response, int responseLength) Called upon a response from the network stack.
      abstract void onFailure(Throwable throwable) Called upon a failure in the network stack.
      abstract void onCancellation() Called upon a cancellation of the request.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • onResponse

         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
      • 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.