SearchViewDelegate

public protocol SearchViewDelegate : AnyObject

SearchViewDelegate informs about certain user interactions with the search components.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Called when user taps the back chevron.

    Declaration

    Swift

    func tappedBack()
  • Called when user selects an item from the search results list.

    Declaration

    Swift

    func didSelectResult(_ result: SearchResult, index: Int)
  • Informs about an error that can occur during a search.

    Declaration

    Swift

    func onSearchError(_ error: Error)
  • Informs about text update

    Declaration

    Swift

    func onTextUpdated(hasInput: Bool)