-
- All Implemented Interfaces:
-
com.algolia.instantsearch.filter.facet.dynamic.DynamicFacetListView
public interface DynamicFacetListState implements DynamicFacetListViewDynamicFacetListView for compose.
-
-
Method Summary
Modifier and Type Method Description abstract Unittoggle(Facet facet, Attribute attribute)Toggle facet selection. abstract BooleanisSelected(Facet facet, Attribute attribute)Check if the provided facet for attribute is selected. abstract List<AttributedFacets>getOrderedFacets()List of attributed facets to present. abstract <ERROR CLASS>getSelections()Mapping between a facet attribute and a set of selected facet values. abstract Function2<Attribute, Facet, Unit>getDidSelect()abstract UnitsetDidSelect(Function2<Attribute, Facet, Unit> didSelect)-
-
Method Detail
-
toggle
abstract Unit toggle(Facet facet, Attribute attribute)
Toggle facet selection.
- Parameters:
facet- selected facetattribute- facet attribute
-
isSelected
abstract Boolean isSelected(Facet facet, Attribute attribute)
Check if the provided facet for attribute is selected.
- Parameters:
facet- selected facetattribute- facet attribute
-
getOrderedFacets
abstract List<AttributedFacets> getOrderedFacets()
List of attributed facets to present.
-
getSelections
abstract <ERROR CLASS> getSelections()
Mapping between a facet attribute and a set of selected facet values.
-
getDidSelect
abstract Function2<Attribute, Facet, Unit> getDidSelect()
-
setDidSelect
abstract Unit setDidSelect(Function2<Attribute, Facet, Unit> didSelect)
-
-
-
-