Android.Widget.CursorAdapter.RunQueryOnBackgroundThread Method
Runs a query with the specified constraint.

Syntax

[Android.Runtime.Register("runQueryOnBackgroundThread", "(Ljava/lang/CharSequence;)Landroid/database/Cursor;", "GetRunQueryOnBackgroundThread_Ljava_lang_CharSequence_Handler")]
public virtual Android.Database.ICursor RunQueryOnBackgroundThread (Java.Lang.ICharSequence constraint)

See Also

CursorAdapter.Filter
CursorAdapter.FilterQueryProvider
CursorAdapter.FilterQueryProvider

Parameters

constraint
the constraint with which the query must be filtered

Returns

Documentation for this section has not yet been entered.

Remarks

Runs a query with the specified constraint. This query is requested by the filter attached to this adapter. The query is provided by a Android.Widget.IFilterQueryProvider. If no provider is specified, the current cursor is not filtered and returned. After this method returns the resulting cursor is passed to CursorAdapter.ChangeCursor(Android.Database.ICursor) and the previous cursor is closed. This method is always executed on a background thread, not on the application's main thread (or UI thread.) Contract: when constraint is null or empty, the original results, prior to any filtering, must be returned.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1