THIS SDK ISDEPRECATED.

We rolled out a new and better SDK for you.

Typeahead parameter

Offer your users search suggestions while they type with the "typeahead" flag. Sample use case: You were recommended a place to visit, but you can’t remember its name. You start searching in your app. After a few letters you see the place you’re looking for!

Use the following code snippet to try this in your app.

1let query = TTSearchQueryBuilder.create(withTerm: term)
2 .withTypeAhead(true)
3 .build()
4search.search(with: query)
TTSearchQuery *query = [[[TTSearchQueryBuilder createWithTerm:term] withTypeAhead:YES] build]
[self.search searchWithQuery:query];