These are the steps to use the adapter.
- Replace the adapter extending ListAdapter with FilterableListAdapter.
- Implement the method onFilter that provides a List and the string the was passed to the filter method
- Update the list according the constraint
val filterAdapter = null // Your adapter instance here
filterAdapter.filter.filter(/*Pass your string here*/)
@ArcherEmiya05 Please check if the README answers your question. The implementation has been updated to remove dynamic filter support since that is not a common use case so unless you need that use the new implementation. The steps for both remain the same.
Regarding the callback, it depends on why do you need it and where you need it.