Package 

Interface DynamicFacetListState

  • All Implemented Interfaces:
    com.algolia.instantsearch.filter.facet.dynamic.DynamicFacetListView

    
    public interface DynamicFacetListState
     implements DynamicFacetListView
                        

    DynamicFacetListView for compose.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit toggle(Facet facet, Attribute attribute) Toggle facet selection.
      abstract Boolean isSelected(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 Unit setDidSelect(Function2<Attribute, Facet, Unit> didSelect)
      • Methods inherited from class com.algolia.instantsearch.compose.filter.facet.dynamic.DynamicFacetListState

        setOrderedFacets, setSelections
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toggle

         abstract Unit toggle(Facet facet, Attribute attribute)

        Toggle facet selection.

        Parameters:
        facet - selected facet
        attribute - facet attribute
      • isSelected

         abstract Boolean isSelected(Facet facet, Attribute attribute)

        Check if the provided facet for attribute is selected.

        Parameters:
        facet - selected facet
        attribute - 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.