FUIListPickerSearchResultsUpdating

public protocol FUIListPickerSearchResultsUpdating: class

An implementation of FUIListPickerSearchResultsUpdating protocol is responsible to maintain a filtered list of options, based on the search string specified, for the corresponding FUIListPickerDataSource implementation.

  • Update search results based on the specified searchString. - parameter listPicker: The requesting ListPicker object. - parameter forSearchString: The search string. If it is an empty string, the search is ended.

    Declaration

    Swift

    func listPicker(_ listPicker: FUIListPicker, updateSearchResults forSearchString: String)

    Parameters

    listPicker

    The requesting ListPicker object.

    forSearchString

    The search string. If it is an empty string, the search is ended.

  • Check if the specified index is in filtered list. - parameter listPicker: The requesting ListPicker object. - parameter unfilteredIndex: The unfiltered index to be checked. - returns: True, if the specified index is in filtered list.

    Declaration

    Swift

    func listPicker(_ listPicker: FUIListPicker, filteredDataSourceContainsItemAt unfilteredIndex: Int) -> Bool

    Parameters

    listPicker

    The requesting ListPicker object.

    unfilteredIndex

    The unfiltered index to be checked.

    Return Value

    True, if the specified index is in filtered list.

  • Gets the index to the original list from the index of filtered list. - parameter listPicker: The requesting ListPicker object. - parameter filteredIndex: The index to the filtered indexes. - returns: The index to the original list from the index of filtered list.

    Declaration

    Swift

    func listPicker(_ listPicker: FUIListPicker, unfilteredDataSourceIndexOfItemAt filteredIndex: Int) -> Int

    Parameters

    listPicker

    The requesting ListPicker object.

    filteredIndex

    The index to the filtered indexes.

    Return Value

    The index to the original list from the index of filtered list.