HERE iOS SDK Developer's Guide

<NMATransitManagerDelegate>

Protocol Summary

protocol <NMATransitManagerDelegate>

Derived from: <NSObject>

A delegate protocol to be implemented by classes using the NMATransitManager, used to receive the results of information requests.

Include: NMAKit.framework/headers/NMATransitManager.h

Inheritance Diagrams

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

[For complete information, see the section Protocol Details]

Instance Method Summary

Table 1. Instance Methods
Instance Method Summary

- @optional (void) transitManager:(nonnull NMATransitManager *) transitManager didCompleteWithError:(nullable NSError *) error

Called upon completion of an NMATransitManager operation, whether or not the operation was successful.

- @optional (void) transitManager:(nonnull NMATransitManager *) transitManager didGetAccessInfo:(nonnull NMATransitAccess *) access forId:(nonnull NSString *) uniqueId

Called by NMATransitManager after successfully completing a request for NMATransitAccess information (e.g. requestAccessInfoForId:).

- @optional (void) transitManager:(nonnull NMATransitManager *) transitManager didGetLineInfo:(nonnull NMATransitLine *) line forId:(nonnull NSString *) uniqueId

Called by NMATransitManager after successfully completing a request for NMATransitLine information (e.g. requestLineInfoForId:).

- @optional (void) transitManager:(nonnull NMATransitManager *) transitManager didGetStopInfo:(nonnull NMATransitStop *) stop forId:(nonnull NSString *) uniqueId

Called by NMATransitManager after successfully completing a request for NMATransitStop information (e.g. requestStopInfoForId:).

- @optional (void) transitManager:(nonnull NMATransitManager *) transitManager didGetSystemInfo:(nonnull NMATransitSystem *) system forId:(nonnull NSString *) uniqueId

Called by NMATransitManager after successfully completing a request for NMATransitSystem information (e.g. requestSystemInfoForId:).

Protocol Details

A delegate protocol to be implemented by classes using the NMATransitManager, used to receive the results of information requests.

All NMATransitManager requests will result in a didCompleteWithError: callback being sent. In the case of an operation failure, this is the only callback sent. If an operation is successful, the delegate will also receive one of the "didGet..." callbacks, depending on which type of information was requested.

Instance Method Details

- @optional (void) transitManager:(nonnull NMATransitManager *) transitManager didCompleteWithError:(nullable NSError *) error

Called upon completion of an NMATransitManager operation, whether or not the operation was successful.

Parameters:

  • transitManager

    The NMATransitManager singleton

  • error

    An error object if the operation failed, otherwise nil

- @optional (void) transitManager:(nonnull NMATransitManager *) transitManager didGetAccessInfo:(nonnull NMATransitAccess *) access forId:(nonnull NSString *) uniqueId

Called by NMATransitManager after successfully completing a request for NMATransitAccess information (e.g. requestAccessInfoForId:).

Parameters:

- @optional (void) transitManager:(nonnull NMATransitManager *) transitManager didGetLineInfo:(nonnull NMATransitLine *) line forId:(nonnull NSString *) uniqueId

Called by NMATransitManager after successfully completing a request for NMATransitLine information (e.g. requestLineInfoForId:).

Parameters:

  • transitManager

    The NMATransitManager singleton

  • line

    The NMATransitLine object requested

  • uniqueId

    The identifying string used to make the original request

- @optional (void) transitManager:(nonnull NMATransitManager *) transitManager didGetStopInfo:(nonnull NMATransitStop *) stop forId:(nonnull NSString *) uniqueId

Called by NMATransitManager after successfully completing a request for NMATransitStop information (e.g. requestStopInfoForId:).

Parameters:

  • transitManager

    The NMATransitManager singleton

  • stop

    The NMATransitStop object requested

  • uniqueId

    The identifying string used to make the original request

- @optional (void) transitManager:(nonnull NMATransitManager *) transitManager didGetSystemInfo:(nonnull NMATransitSystem *) system forId:(nonnull NSString *) uniqueId

Called by NMATransitManager after successfully completing a request for NMATransitSystem information (e.g. requestSystemInfoForId:).

Parameters: