HERE iOS SDK Developer's Guide

NMALink

Class Summary

class NMALink

Derived from: NSObject

Represents a HERE Places resource link which requires another request to be made in order to retrieve the full detauls of the resource.

Include: NMAKit.framework/headers/NMALink.h

Inheritance Diagrams

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, assign] NSString *  iconUrl

Gets an URL of the icon for the resource to which assiciated with this NMALink

[readable, assign] NSString *  name

Gets the localized name for the resource to which the NMALink refers

[readable, assign] NSString *  uniqueId

Gets the unique identifier for the resource to which the NMALink refers

[readable, assign] NSString *  url

Gets the NSString representation of the link URL

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(nonnull instancetype) init

Class Method Summary

Table 3. Class Methods
Class Methods

+(nonnull instancetype) new

Class Details

Represents a HERE Places resource link which requires another request to be made in order to retrieve the full detauls of the resource. The link contains basic metadata about the linked resource.

The interface is typically subclassed to provide methods to make the appropriate resource request.

Public Property Details

[readable, assign] NSString * iconUrl

Gets an URL of the icon for the resource to which assiciated with this NMALink.

Note:

An icon URL for a NMALink object is optional, so this property could be nil. Application can download the icon online with this URL, but it needs to use its own icon for offline.

[readable, assign] NSString * name

Gets the localized name for the resource to which the NMALink refers.

Client applications can safely display this name to the user.

Note:

A title for a linked object is optional, so this property could be nil.

[readable, assign] NSString * uniqueId

Gets the unique identifier for the resource to which the NMALink refers.

Note:

An identifier for a linked object is optional, so this property could be nil.

[readable, assign] NSString * url

Gets the NSString representation of the link URL.

This URL may be used to perform an HTTP GET request to the HERE Places REST service to retrieve the full metadata of the linked resources for online.

Use the request methods in dervied classes for offline. See also detailsRequest and request

The request may return a HTML or JSON response. If url contains "places.hybrid.api.here.com", it will return a JSON response as specified at http://developer.here.com/places If URL contains other domains, it will most likely return a HTML response.

Note:

For convenience it is recommended to use request methods in dervied classes when available.

Instance Method Details

-(nonnull instancetype) init

Instances of this class should not be initialized directly

Class Method Details

+(nonnull instancetype) new

Instances of this class should not be initialized directly