-
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
-
Constructor Summary
Constructors Constructor Description ImageSource(Context context, String source, double width, double height)
ImageSource(Context context, String source)
-
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. -
-
Method Detail
-
isResource
boolean isResource()
Get whether this image source represents an Android resource or a network URI.
-
hashCode
int hashCode()
-
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.
-
-
-
-