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

Parameters

autocomplete

The current TKAutoCompleteTextView object.

prefix

The typed text

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

Parameters

autocomplete

The current TKAutoCompleteTextView object.

input

The typed text

Declared In

TKAutoCompleteTextView.h