TTAutocomplete
Objective-C
@interface TTAutocomplete
Swift
class TTAutocomplete
TTAutocomplete
-
DEPRECATED
- This method is deprecated. Use the ‘initWithKey’ method to init with Key.
- The planned withdrawal date is 15.06.2021.
Initializer with info.plist Key.
Declaration
Objective-C
- (instancetype _Nonnull)init;Swift
init() -
Initializer with key for the TomTom Search API Service.
Declaration
Objective-C
- (instancetype _Nonnull)initWithKey:(NSString *_Nonnull)key;Swift
init(key: String) -
Delegate that informs the subscriber when a search result is available. It contains a TTAutocompleteResponse object.
Declaration
Objective-C
@property (nonatomic, weak) id<TTAutocompleteDelegate> _Nullable delegate;Swift
weak var delegate: TTAutocompleteDelegate? { get set } -
Request with async callback
Declaration
Objective-C
- (void)requestWithQuery:(TTAutocompleteQuery *_Nonnull)query;Swift
func request(with query: TTAutocompleteQuery)Parameters
queryObject containing the data needed to perform a request.
-
Request with async block
Declaration
Objective-C
- (void)requestWithQuery:(TTAutocompleteQuery *_Nonnull)query completionHandle: (void (^_Nonnull)(TTAutocompleteResponse *_Nullable, TTResponseError *_Nullable))completionHandler;Swift
func request(with query: TTAutocompleteQuery, completionHandle completionHandler: @escaping (TTAutocompleteResponse?, UnsafeMutablePointer<Int32>?) -> Void)Parameters
queryObject containing the data needed to perform a Request.
completionHandlerCompletionHandler that informs the subscriber when a Response is available.
TTAutocomplete Class Reference