SearchFragment
Fragment that consists of SearchView, SearchResultsView, SearchSuggestionView and brings features of these separate views into a single fragment.
Important: This is a Public Preview API. It may be changed or removed at any time.
Functions
Adds a custom view under either the com.tomtom.sdk.search.ui.SearchSuggestionView or SearchView if a suggestion has been set and is displayed on top of the SearchResultsView. The view is displayed when the SearchView does not contain any text.
Clears the SearchResultsView and the SearchView.
Allows you to disable the functionality of the search back button. The button is enabled by default and will be visible whenever there is text in the SearchView. Pressing the button clears all data in the SearchFragment.
Removes the custom view displayed either under the com.tomtom.sdk.search.ui.SearchSuggestionView or under the SearchView, depending if a suggestion is set and over the SearchResultsView. The view is displayed when the SearchView does not contain any text.
Sets a SearchFragmentListener for this fragment.
Sets text on the SearchView and triggers searching if the text is not empty.
Sets the suggestion that appears under the SearchView.
Loads the passed SearchProperties into the SearchView.