belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1
SearchFragment.SearchResultProvider
public
static
interface
SearchFragment.SearchResultProvider
android.support.v17.leanback.app.SearchFragment.SearchResultProvider |
Search API to be provided by the application.
Summary
Public methods | |
---|---|
abstract
ObjectAdapter
|
getResultsAdapter()
Method invoked some time prior to the first call to onQueryTextChange to retrieve an ObjectAdapter that will contain the results to future updates of the search query. |
abstract
boolean
|
onQueryTextChange(String newQuery)
Method invoked when the search query is updated. |
abstract
boolean
|
onQueryTextSubmit(String query)
Method invoked when the search query is submitted, either by dismissing the keyboard, pressing search or next on the keyboard or when voice has detected the end of the query. |
Public methods
getResultsAdapter
ObjectAdapter getResultsAdapter ()
Method invoked some time prior to the first call to onQueryTextChange to retrieve an ObjectAdapter that will contain the results to future updates of the search query.
As results are retrieved, the application should use the data set notification methods on the ObjectAdapter to instruct the SearchFragment to update the results.
Returns | |
---|---|
ObjectAdapter |
ObjectAdapter The result object adapter. |
onQueryTextChange
boolean onQueryTextChange (String newQuery)
Method invoked when the search query is updated.
This is called as soon as the query changes; it is up to the application to add a delay before actually executing the queries if needed.
This method might not always be called before onQueryTextSubmit gets called, in particular for voice input.
Parameters | |
---|---|
newQuery |
String : The current search query. |
Returns | |
---|---|
boolean |
whether the results changed as a result of the new query. |
onQueryTextSubmit
boolean onQueryTextSubmit (String query)
Method invoked when the search query is submitted, either by dismissing the keyboard, pressing search or next on the keyboard or when voice has detected the end of the query.
Parameters | |
---|---|
query |
String : The query entered. |
Returns | |
---|---|
boolean |
whether the results changed as a result of the query. |
Interfaces
- BrowseFragment.FragmentHost
- BrowseFragment.MainFragmentAdapterProvider
- BrowseFragment.MainFragmentRowsAdapterProvider
- BrowseSupportFragment.FragmentHost
- BrowseSupportFragment.MainFragmentAdapterProvider
- BrowseSupportFragment.MainFragmentRowsAdapterProvider
- HeadersFragment.OnHeaderClickedListener
- HeadersFragment.OnHeaderViewSelectedListener
- HeadersSupportFragment.OnHeaderClickedListener
- HeadersSupportFragment.OnHeaderViewSelectedListener
- SearchFragment.SearchResultProvider
- SearchSupportFragment.SearchResultProvider
Classes
- BackgroundManager
- BaseFragment
- BaseSupportFragment
- BrandedFragment
- BrandedSupportFragment
- BrowseFragment
- BrowseFragment.BrowseTransitionListener
- BrowseFragment.FragmentFactory
- BrowseFragment.ListRowFragmentFactory
- BrowseFragment.MainFragmentAdapter
- BrowseFragment.MainFragmentAdapterRegistry
- BrowseFragment.MainFragmentRowsAdapter
- BrowseSupportFragment
- BrowseSupportFragment.BrowseTransitionListener
- BrowseSupportFragment.FragmentFactory
- BrowseSupportFragment.ListRowFragmentFactory
- BrowseSupportFragment.MainFragmentAdapter
- BrowseSupportFragment.MainFragmentAdapterRegistry
- BrowseSupportFragment.MainFragmentRowsAdapter
- DetailsFragment
- DetailsFragmentBackgroundController
- DetailsSupportFragment
- DetailsSupportFragmentBackgroundController
- ErrorFragment
- ErrorSupportFragment
- GuidedStepFragment
- GuidedStepSupportFragment
- HeadersFragment
- HeadersSupportFragment
- OnboardingFragment
- OnboardingSupportFragment
- PlaybackFragment
- PlaybackFragmentGlueHost
- PlaybackSupportFragment
- PlaybackSupportFragmentGlueHost
- ProgressBarManager
- RowsFragment
- RowsFragment.MainFragmentAdapter
- RowsFragment.MainFragmentRowsAdapter
- RowsSupportFragment
- RowsSupportFragment.MainFragmentAdapter
- RowsSupportFragment.MainFragmentRowsAdapter
- SearchFragment
- SearchSupportFragment
- VerticalGridFragment
- VerticalGridSupportFragment
- VideoFragment
- VideoFragmentGlueHost
- VideoSupportFragment
- VideoSupportFragmentGlueHost