Most visited

Recently visited

Added in API level 1

FilterQueryProvider

public interface FilterQueryProvider

android.widget.FilterQueryProvider


CursorAdapter和CursorTreeAdapter的外部客户端可以使用此类来定义如何过滤适配器的内容。

也可以看看:

Summary

Public methods

abstract Cursor runQuery(CharSequence constraint)

使用指定的约束运行查询。

Public methods

runQuery

Added in API level 1
Cursor runQuery (CharSequence constraint)

使用指定的约束运行查询。 该查询由连接到此适配器的过滤器请求。 合同:当约束为空或空时,必须返回任何过滤之前的原始结果。

Parameters
constraint CharSequence: the constraint with which the query must be filtered
Returns
Cursor a Cursor representing the results of the new query

Hooray!