TKAutoCompleteSuggestViewDelegate Protocol Reference
Conforms to | NSObject |
Declared in | TKAutoCompleteTextView.h |
Overview
The TKAutoCompleteSuggestViewDelegate protocol allow you to define the behavior of a view which is intended to work as a suggestView for the autocomplete.
Tasks
-
– populateWithItems:
required method -
– reloadSuggestions
required method -
– selectedItem
required method -
– shouldAlwaysHideSuggestionView
required method -
– hide
required method -
– show
required method
Instance Methods
populateWithItems:
Defines how the view will be populated with items.
- (void)populateWithItems:(NSArray<__kindofTKAutoCompleteToken*> *__nonnull)items
Parameters
- items
The items that will be presented.
Declared In
TKAutoCompleteTextView.h
reloadSuggestions
Reload the suggestion items.
- (void)reloadSuggestions
Declared In
TKAutoCompleteTextView.h
selectedItem
Called when a suggestion item is selected.
- (TKAutoCompleteToken *__nullable)selectedItem
Declared In
TKAutoCompleteTextView.h