java.lang.Object | |
↳ | com.google.android.gms.common.images.WebImage |
A class that represents an image that is located on a web server.
[Expand]
Inherited Constants | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new
WebImage with the given URL and dimensions.
| |||||||||||
Constructs a new
WebImage with the given URL.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the image height, in pixels.
| |||||||||||
Gets the image URL.
| |||||||||||
Gets the image width, in pixels.
| |||||||||||
Returns a string representation of this object.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||||||||
![]() |
Constructs a new WebImage
with the given URL and dimensions.
url | The URL of the image. |
---|---|
width | The width of the image, in pixels. |
height | The height of the image, in pixels. |
IllegalArgumentException | If the URL is null or empty, or the dimensions are invalid. |
---|
Constructs a new WebImage
with the given URL.
url | The URL of the image. |
---|
IllegalArgumentException | If the URL is null or empty. |
---|
Gets the image height, in pixels.
Gets the image URL.
Gets the image width, in pixels.
Returns a string representation of this object.