Android
Signature
Explore example code
Browse the Current Filters example code on GitHub.
About this widget
Shows the currently active refinements within a givenFilterState and lets users remove filters individually.
Examples
Kotlin
Low-level API
If you want to fully control the Current Filters components and connect them manually, use the following components:FilterCurrentViewModel. The logic for current refinements in theFilterState.FilterState. The current state of the filters.FilterCurrentView. The view that renders the current filters.FilterCurrentPresenter. Optional. The presenter that defines the way you want to display the Filters.
Kotlin
Compose UI
InstantSearch provides theFilterCurrentState as a state model,
which is an implementation of the FilterCurrentView interface.
You need to connect FilterCurrentState to the FilterCurrentConnector or FilterCurrentViewModel like any other FilterCurrentView implementation.
Kotlin
Parameters
The default filters to display.
The
FilterState that will hold your filters.When specified, only matching current refinements will be displayed.
View
The view that renders the current filters.
The presenter that defines the way filters are displayed.
Kotlin