Språk

AbstractCursor.Requery Method

Definition

In the base implementation, notifies observers that the cursor data has changed.

[Android.Runtime.Register("requery", "()Z", "GetRequeryHandler")]
public virtual bool Requery();
[<Android.Runtime.Register("requery", "()Z", "GetRequeryHandler")>]
abstract member Requery : unit -> bool
override this.Requery : unit -> bool

Returns

true when the base implementation completes. An override can return false if the requery fails.

Implements

Attributes

Remarks

The base implementation can be called after deactivation. It registers its content observer again if necessary and notifies data set observers. It does not execute the query again. Subclasses can override this method to refresh their data.

A subclass implementation can execute a query and take a long time. Calling it on the main thread can cause an application not responding (ANR) error.

Android reference for android.database.AbstractCursor.requery.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to