Filter

Class of android.widget · Filter.java · Android's reference

public abstract class Filter

Filters the data of an adapter on a worker thread, and publishes the result on the thread that asked.

Nested types

Constructors

public Filter() empty body source

Methods

public final void filter(CharSequence constraint) source
public final void filter(CharSequence constraint, FilterListener listener) source

A new request replaces the one that waits: only the result of the last request is published.

protected abstract FilterResults performFiltering(CharSequence constraint) source
protected abstract void publishResults(CharSequence constraint, FilterResults results) source
public CharSequence convertResultToString(Object resultValue) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.