HERE Android SDK Developer's Guide

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:

getImages()

Method Summary

Table 1. Methods in ImageMedia
Methods

public boolean equals (Object obj)

public String getDimensionHref (int width, int height)

Get the HREF to retrieve an image with specific width-height dimensions.

public String getId ()

Gets the unique identifier for the Image .

public String getUrl ()

Gets the String representation of the URL for the source of the image file.

public UserLink getUser ()

Gets the details of the User who contributed the Image .

public int hashCode ()

Class Details

Represents image content related to a Place.

See also:

getImages()

Method Details

public boolean equals (Object obj)

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:

addImageDimensions(int, int)

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 ()