ContentQueryMap.SetKeepUpdated(Boolean) Method

Definition

Change whether or not the ContentQueryMap will register with the cursor's ContentProvider for change notifications.

[Android.Runtime.Register("setKeepUpdated", "(Z)V", "GetSetKeepUpdated_ZHandler")]
public virtual void SetKeepUpdated (bool keepUpdated);
[<Android.Runtime.Register("setKeepUpdated", "(Z)V", "GetSetKeepUpdated_ZHandler")>]
abstract member SetKeepUpdated : bool -> unit
override this.SetKeepUpdated : bool -> unit

Parameters

keepUpdated
Boolean

if true the ContentQueryMap should be registered with the cursor's ContentProvider, false otherwise

Attributes

Remarks

Change whether or not the ContentQueryMap will register with the cursor's ContentProvider for change notifications. If you use a ContentQueryMap in an activity you should call this with false in onPause(), which means you need to call it with true in onResume() if want it to be kept updated.

Java documentation for android.content.ContentQueryMap.setKeepUpdated(boolean).

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