다음을 통해 공유


ICursor.RegisterDataSetObserver(DataSetObserver) Method

Definition

Register an observer that is called when changes happen to the contents of the this cursors data set, for example, when the data set is changed via #requery(), #deactivate(), or #close().

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

Parameters

observer
DataSetObserver

the object that gets notified when the cursors data set changes.

Attributes

Remarks

Register an observer that is called when changes happen to the contents of the this cursors data set, for example, when the data set is changed via #requery(), #deactivate(), or #close().

Java documentation for android.database.Cursor.registerDataSetObserver(android.database.DataSetObserver).

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