Interface ImageCallback

  • All Implemented Interfaces:

    
    public interface ImageCallback
    
                        

    The callback type to notify the result of an image request.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onResponse(ImageRequest request, Bitmap response) Called when the Bitmap is successfully returned by the HTTP server.
      abstract Unit onFailure(ImageRequest request, Exception e) Called when the ImageRequest call could not be executed due an error.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onResponse

         abstract Unit onResponse(ImageRequest request, Bitmap response)

        Called when the Bitmap is successfully returned by the HTTP server.

        Parameters:
        request - the image request
        response - the response for the image request