Sorry, you need to enable JavaScript to visit this website.

Typeahead parameter

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 code snippet below to try this in your app.

- (void)performAutocompleteSearchWithQuery:(NSString *)query {
    TTSearchQueryBuilder *queryBuilder = [[TTSearchQueryBuilder
                                             createWithTerm:query]
                                            withTypeAhead:true];
    TTSearchQuery *searchQuery = [queryBuilder build];
    [self.search searchWithQuery:searchQuery withAsyncDelegate:self];
}

 

You are here