AutocompleteManagerDataSource
public protocol AutocompleteManagerDataSource : AnyObject
AutocompleteManagerDataSource is a protocol that passes data to the AutocompleteManager
-
The autocomplete options for the registered prefix.
Declaration
Swift
func autocompleteManager(_ manager: AutocompleteManager, autocompleteSourceFor prefix: String) -> [AutocompleteCompletion]
Parameters
manager
The AutocompleteManager
prefix
The registered prefix
Return Value
An array of
AutocompleteCompletion
options for the given prefix -
autocompleteManager(_:
Default implementationtableView: cellForRowAt: for: ) The cell to populate the
AutocompleteTableView
withDefault Implementation
Declaration
Swift
func autocompleteManager(_ manager: AutocompleteManager, tableView: UITableView, cellForRowAt indexPath: IndexPath, for session: AutocompleteSession) -> UITableViewCell
Parameters
manager
The
AttachmentManager
that sources the UITableViewDataSourcetableView
indexPath
The
IndexPath
of the cellsession
The current
Session
of theAutocompleteManager
Return Value
A UITableViewCell to populate the
AutocompleteTableView