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.
delegate
Delegate that informs the subscriber when a search result is available. It contains a TTSearchResponse object.
@property (nonatomic, weak) id<TTSearchDelegate> _Nullable delegate
Discussion
Delegate that informs the subscriber when a search result is available. It contains a TTSearchResponse object.
Declared In
TTSearch.h
– 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 or error if fails. |
Discussion
Search with async callback
Declared In
TTSearch.h
– searchWithQuery:
Search with async callback
- (void)searchWithQuery:(TTSearchQuery *_Nonnull)query
Parameters
query |
Object containing the data needed to perform a search. |
---|
Discussion
Search with async callback
Declared In
TTSearch.h
– searchWithQuery:completionHandler:
Search with async block (Deprecated: This method is deprecated, use completionHandle with TTSearchResponse instead.)
- (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 objects or error if fails. |
Discussion
Search with async block
Declared In
TTSearch.h
– searchWithQuery:completionHandle:
Search with async block
- (void)searchWithQuery:(TTSearchQuery *_Nonnull)query completionHandle:(void ( ^ _Nonnull ) ( TTSearchResponse *_Nullable response , TTResponseError *_Nullable error ))completionHandler
Parameters
query |
Object containing the data needed to perform a search. |
---|---|
completionHandler |
CompletionHandler that informs the subscriber when a search response is available. It contains a TTSearchResponse 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