I want to make a filter for my RecyclerView , I find how to do that in Java but I want to implement this in Kotlin , this code is placed into Adapter class.
private Filter exampleFilter = new Filter() {
@Override
protected FilterResults performFiltering(CharSequence constraint) {
return null;
}
@Override
protected void publishResults(CharSequence constraint , FilterResults results) {}
};
How this code can be used for kotlin? Here is the full code for Adapter class https://pastebin.com/a2dj30By