HERE iOS SDK Developer's Guide

NMAMediaImage

Class Summary

class NMAMediaImage

Derived from: NMAMedia

Represents an image associated with an NMAPlace.

Include: NMAKit.framework/headers/NMAMediaImage.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAMediaImage

[For complete information, see the section Class Details]

See also:

NMAMediaEditorial

NMAMediaReview

NMAMediaRating

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, assign] NSString *  imageSource

The external URL of the image source

[readable, assign] NSString *  uniqueId

The unique identifier of the image

[readable, assign] NMALink user

The details of the user who contributed the image

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(nullable NSString *) URLForImageWithWidth:(NSInteger) width height:(NSInteger) height

Gets a URL for an image with specific width-height dimensions

Class Details

Represents an image associated with an NMAPlace. Images are uploaded by the HERE user community.

See also:

NMAMediaEditorial

NMAMediaReview

NMAMediaRating

Public Property Details

[readable, assign] NSString * imageSource

The external URL of the image source.

[readable, assign] NSString * uniqueId

The unique identifier of the image.

Note:

An ID for an image is optional. Attempts to read this property could return empty string.

[readable, assign] NMALinkuser

The details of the user who contributed the image.

Note:

A user-contributor for an image is optional. Attempts to read this property could return nil.

Instance Method Details

-(nullable NSString *) URLForImageWithWidth:(NSInteger) width height:(NSInteger) height

Gets a URL for an image with specific width-height dimensions.

The provided width-height are used as upper boundaries for the dimensions of the returned images. The solution will never scale up small images and will maintain the aspect ratio of the original image.

A URL of image with specific width-height dimensions will not be returned if it has not been queried with NMARequest:addImageSizeWithWidth:height

For example:

image_dimensions=w32-h32,w64-h64
image_dimensions=w32-h32,w300
image_dimensions=h200

Parameters:

  • width

    The image width.

  • height

    The image height.

Returns:

The URL to retrieve the image with the specified width-height dimensions. Can be nil if an image with the specified dimensions is unavailable.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.