ICursor.RegisterContentObserver(ContentObserver) Method

Definition

Register an observer that is called when changes happen to the content backing this cursor.

[Android.Runtime.Register("registerContentObserver", "(Landroid/database/ContentObserver;)V", "GetRegisterContentObserver_Landroid_database_ContentObserver_Handler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void RegisterContentObserver (Android.Database.ContentObserver? observer);
[<Android.Runtime.Register("registerContentObserver", "(Landroid/database/ContentObserver;)V", "GetRegisterContentObserver_Landroid_database_ContentObserver_Handler:Android.Database.ICursorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member RegisterContentObserver : Android.Database.ContentObserver -> unit

Parameters

observer
ContentObserver

the object that gets notified when the content backing the cursor changes.

Attributes

Remarks

Register an observer that is called when changes happen to the content backing this cursor. Typically the data set won't change until #requery() is called.

Java documentation for android.database.Cursor.registerContentObserver(android.database.ContentObserver).

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

See also