ImageMedia
The class ImageMedia is a member of com.here.android.mpa.search .
Class Summary
public final class ImageMedia
extends com.here.android.mpa.search.Media, java.lang.Object
Represents image content related to a Place.
[For complete information, see the section Class Details]
See also:
Method Summary
Methods |
---|
For documentation, see java.lang.Object |
Get the HREF to retrieve an image with specific width-height dimensions. |
Gets the unique identifier for the |
Gets the |
Gets the details of the |
For documentation, see java.lang.Object |
Class Details
Represents image content related to a Place.
See also:
Method Details
public boolean equals (Object obj)
For documentation, see java.lang.Object
Parameters:
-
obj
public String getDimensionHref (int width, int height)
Get the HREF to retrieve an image with specific width-height dimensions. A HTTP request using this HREF will return the image data.
Parameters:
-
width
The image width.
-
height
The image height.
Returns:
The HREF to retrieve the image with the specified width-height dimensions. Can be null
if an image with the specified dimensions is unavailable.
See also:
public String getId ()
Gets the unique identifier for the Image
.
Note: an ID for an Image
is optional, so a call to this method could return null
.
Returns:
The ID (could be null
)
public String getUrl ()
Gets the String
representation of the URL for the source of the image file.
Returns:
The URL
public UserLink getUser ()
Gets the details of the User
who contributed the Image
.
Note: user contribution for an Image
is optional, so a call to this method could return null
.
Returns:
The User
who contributed the Image
(could be null
)
public int hashCode ()
For documentation, see java.lang.Object