About this widget
A view with helpers that displays a paginated list of search results. It uses Android Architecture Components’ Paging library and LiveData to provide lifecycle-aware, observable search results that can be loaded as users scroll. To add infinite hits to your search experience, add the following to yourbuild.gradle
file:
Searcher
to handle your searches.Paginator
. A pagination utility that will load hits incrementally.PagingConfig
to configure loading behavior.T
. Adata class
representing a search result.FilterState
so that the paginated list refreshes when filters change.
Examples
Kotlin
Compose UI
InstantSearch provides thePaginator
,
which exposes a flow
property for paging data and an invalidate()
method to stop loading.
You must also connect Paginator
to other components, such as SearchBoxConnector
, FilterState
, or FacetListConnector
.
Kotlin