HERE iOS SDK Developer's Guide

NMAViewObject

Class Summary

class NMAViewObject

Derived from: NSObject

The base class for all objects displayed in an NMA SDK view.

Include: NMAKit.framework/headers/NMAViewObject.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAViewObject

[For complete information, see the section Class Details]

See also:

NMAProxyObject NMAUserObject

Instance Method Summary

Table 1. Instance Methods
Instance Method Summary

-(BOOL) isEqual:(nullable id) aViewObject

Determines whether the specified NMAViewObject object is equal to this NMAViewObject

-(BOOL) isInArray:(nonnull NSArray< NMAViewObject * > *) objects

Determines whether this NMAViewObject exists within the specified NSArray of NMAViewObject objects

-(nullable NMAGeoCoordinates *) location

The geographical location of the view object.

Class Details

The base class for all objects displayed in an NMA SDK view.

All objects displayed by an NMA view (such as NMAMapView or NMAStreetLevelView, if available) have NMAViewObject as their base class. All such objects fall into one of two categories: proxy objects, created by the SDK, and user objects, created by the client application. These objects additionally inherit from NMAProxyObject and NMAUserObject, respectively.

See also:

NMAProxyObject NMAUserObject

Instance Method Details

-(BOOL) isEqual:(nullable id) aViewObject

Determines whether the specified NMAViewObject object is equal to this NMAViewObject.

Parameters:

  • aViewObject

    A NMAViewObject to compare with this NMAViewObject for equality

Returns:

YES if the NMAViewObject internal instances are equal, NO otherwise

-(BOOL) isInArray:(nonnull NSArray< NMAViewObject * > *) objects

Determines whether this NMAViewObject exists within the specified NSArray of NMAViewObject objects.

Parameters:

  • objects

    An array of NMAViewObject objects to check for the existence of this NMAViewObject

Returns:

YES if this NMAViewObject exists within the specified NSArray, NO otherwise

-(nullable NMAGeoCoordinates *) location

The geographical location of the view object.

The meaning of the location for a particular object depends on that object's type. Objects that don't have a location will return nil. The meaning of the location for certain view objects is as follows:

NMAMapView objects:
NMAStreetLevelView objects (if NMAStreetLevelView is avaialble):
  • NMAStreetLevelLink - no location
  • NMAStreetLevelBuilding - geo coordinates of the building