About this widget
Use theHits
view and helper components to display a list of search results.
Use HitsPaging
if you want to use infinite scrolling in your search.
To add Hits
to your search experience, use these components:
Searcher
. TheSearcher
that handles your searches.T
. Adata class
representing a search result.HitsView<T>
. The view that renders objects of typeT
.
Examples
You can usedeserialize
to convert raw hits into your own data class
using the Serializable
annotation.
Kotlin
Compose UI
InstantSearch provides theLoadingState
as a state model, which is an implementation of the LoadingView
interface.
You need to connect LoadingState
to the LoadingConnector
or LoadingViewModel
like any other LoadingView
implementation.
Kotlin
Parameters
A function transforming the search response into a list of results of your class
T
.Kotlin