TTSearch Class Reference

Inherits from NSObject
Declared in TTSearch.h

Overview

TomTom Search API main object. Contains methods to use Tomtom’s online search engine and provides support for both async and sync calls.

– searchWithQuery:withAsyncDelegate:

Search with async callback

- (void)searchWithQuery:(TTSearchQuery *_Nonnull)query withAsyncDelegate:(id<TTSearchDelegate> _Nonnull)delegate

Parameters

query

Object containing the data needed to perform a search.

delegate

Delegate that informs the subscriber when a search result is available. It contains a TTSearchResult object.

Discussion

Search with async callback

Declared In

TTSearch.h

– searchWithQuery:completionHandler:

Search with async block

- (void)searchWithQuery:(TTSearchQuery *_Nonnull)query completionHandler:(void ( ^ _Nonnull ) ( NSArray<TTSearchResult*> *_Nullable result , TTResponseError *_Nullable error ))completionHandler

Parameters

query

Object containing the data needed to perform a search.

completionHandler

CompletionHandler that informs the subscriber when a search result is available. It contains a TTSearchResult object.

Discussion

Search with async block

Declared In

TTSearch.h

– cancel

Cancels the current search request

- (void)cancel

Discussion

Cancels the current search request

Declared In

TTSearch.h