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!