-
public class ImageSourceClass describing an image source (network URI or resource) and size.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisResource
-
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 booleanisResource()Get whether this image source represents an Android resource or a network URI. booleanequals(Object o)inthashCode()StringgetSource()Get the source of this image, as it was passed to the constructor. UrigetUri()Get the URI for this image - can be either a parsed network URI or a resource URI. doublegetSize()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.
-
-
-
-