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:
Searcherto handle your searches.Paginator. A pagination utility that will load hits incrementally.PagingConfigto configure loading behavior.T. Adata classrepresenting a search result.FilterStateso 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