Package 

Class ImageSource


  • 
    public class ImageSource
    
                        

    Class describing an image source (network URI or resource) and size.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean isResource
    • Method Summary

      Modifier and Type Method Description
      boolean isResource() Get whether this image source represents an Android resource or a network URI.
      boolean equals(Object o)
      int hashCode()
      String getSource() Get the source of this image, as it was passed to the constructor.
      Uri getUri() Get the URI for this image - can be either a parsed network URI or a resource URI.
      double getSize() Get the area of this image.
      • Methods inherited from class java.lang.Object

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

      • ImageSource

        ImageSource(Context context, String source, double width, double height)
    • Method Detail

      • isResource

         boolean isResource()

        Get whether this image source represents an Android resource or a network URI.

      • getSource

         String getSource()

        Get the source of this image, as it was passed to the constructor.

      • getUri

         Uri getUri()

        Get the URI for this image - can be either a parsed network URI or a resource URI.

      • getSize

         double getSize()

        Get the area of this image.