HERE iOS SDK Developer's Guide

<NMAResultListener>

Protocol Summary

protocol <NMAResultListener>

Derived from: <NSObject>

Represents an event listener that reports information about query progress changes and query completion.

Include: NMAKit.framework/headers/NMAResultListener.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for <NMAResultListener> – <NMAResultListener>

[For complete information, see the section Protocol Details]

Instance Method Summary

Table 1. Instance Methods
Instance Method Summary

-(void) request:(nonnull NMARequest *) request didCompleteWithData:(nullable id) data error:(nullable NSError *) error

Callback when a request has completed.

Protocol Details

Represents an event listener that reports information about query progress changes and query completion.

Methods of this protocol are called on the main queue.

Instance Method Details

-(void) request:(nonnull NMARequest *) request didCompleteWithData:(nullable id) data error:(nullable NSError *) error

Callback when a request has completed.

The following list shows NMA requrest types on the left and the corresponding result data types on the right. The data type of the first argument received by this method is one of the types on the left, the data type of the second argument is one of those on the right.
NMAGeocodeRequest                  NSArray(NMAGeocodeResult)
NMAReverseGeocodeRequest           NSArray(NMAReverseGeocodeResult)
NMADiscoveryRequest                NMADiscoveryPage
NMAPlaceRequest                    NMAPlace
NMAMediaCollectionPageRequest      NMAMediaCollectionPage
NMASuggestionRequest               NSArray(NSString)

Parameters:

  • request

    An object of the type shown on the left in the list above.

  • data

    An object containing the search results, the possible types are shown on the right-hand side in the list above. Can be nil if no results found or an error was encountered.

  • error

    NSError for this request. Nil if the request completed successfully. Otherwise, this value is populated with an NMARequestError error code and a domain of NMA_PLACES_ERROR_DOMAIN.