TKAutoCompleteDataSource Protocol Reference
Conforms to | NSObject |
Declared in | TKAutoCompleteTextView.h |
Overview
The TKAutoCompleteDataSource protocol allow you to provide custom suggestion filtering algorithm.
Instance Methods
autoComplete:completionForPrefix:
Allows you to perform custom filtering over the suggestion list and to define criteria on which completing suggestions to be shown.
- (NSArray<__kindofTKAutoCompleteToken*> *__nonnull)autoComplete:(TKAutoCompleteTextView *__nonnull)autocomplete completionForPrefix:(NSString *__nullable)prefix
Return Value
Array of the chosen completion suggestions
Declared In
TKAutoCompleteTextView.h
autoComplete:completionsForString:
Allows you to perform custom filtering over the suggestion list and to define criteria on which completing suggestions to be shown.
- (void)autoComplete:(TKAutoCompleteTextView *__nonnull)autocomplete completionsForString:(NSString *__nonnull)input
Declared In
TKAutoCompleteTextView.h