library / com.camerash.filterdrawer / RecyclerAdapterFilter / filter

filter

abstract fun filter(data: Data, parent: Parent, child: Child): Boolean

Called when filtering of data items happens

Parameters

data - The data item to be filtered

parent - The ParentItem (category) that the ChildItem (filter) belongs to

child - The ChildItem (filter) to be compared with the data item

Return
Whether the data should be included in the filtered list. If false, this item will be filtered out