ContentResolver.NotifyChange ContentResolver.NotifyChange Method

Definition

Overloads

NotifyChange(Uri, ContentObserver) NotifyChange(Uri, ContentObserver)

Notify registered observers that a row was updated and attempt to sync changes to the network.

NotifyChange(Uri, ContentObserver, NotifyChangeFlags) NotifyChange(Uri, ContentObserver, NotifyChangeFlags)
NotifyChange(Uri, ContentObserver, Boolean) NotifyChange(Uri, ContentObserver, Boolean)

Notify registered observers that a row was updated.

NotifyChange(Uri, ContentObserver) NotifyChange(Uri, ContentObserver)

Notify registered observers that a row was updated and attempt to sync changes to the network.

[Android.Runtime.Register("notifyChange", "(Landroid/net/Uri;Landroid/database/ContentObserver;)V", "GetNotifyChange_Landroid_net_Uri_Landroid_database_ContentObserver_Handler")]
public virtual void NotifyChange (Android.Net.Uri uri, Android.Database.ContentObserver observer);
abstract member NotifyChange : Android.Net.Uri * Android.Database.ContentObserver -> unit
override this.NotifyChange : Android.Net.Uri * Android.Database.ContentObserver -> unit

Parameters

uri
Uri Uri

The uri of the content that was changed.

observer
ContentObserver ContentObserver

The observer that originated the change, may be null. The observer that originated the change will only receive the notification if it has requested to receive self-change notifications by implementing DeliverSelfNotifications() to return true.

Remarks

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.

NotifyChange(Uri, ContentObserver, NotifyChangeFlags) NotifyChange(Uri, ContentObserver, NotifyChangeFlags)

[Android.Runtime.Register("notifyChange", "(Landroid/net/Uri;Landroid/database/ContentObserver;I)V", "GetNotifyChange_Landroid_net_Uri_Landroid_database_ContentObserver_IHandler", ApiSince=24)]
public virtual void NotifyChange (Android.Net.Uri uri, Android.Database.ContentObserver observer, Android.Content.NotifyChangeFlags flags);
abstract member NotifyChange : Android.Net.Uri * Android.Database.ContentObserver * Android.Content.NotifyChangeFlags -> unit
override this.NotifyChange : Android.Net.Uri * Android.Database.ContentObserver * Android.Content.NotifyChangeFlags -> unit

Parameters

uri
Uri Uri

Remarks

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.

NotifyChange(Uri, ContentObserver, Boolean) NotifyChange(Uri, ContentObserver, Boolean)

Notify registered observers that a row was updated.

[Android.Runtime.Register("notifyChange", "(Landroid/net/Uri;Landroid/database/ContentObserver;Z)V", "GetNotifyChange_Landroid_net_Uri_Landroid_database_ContentObserver_ZHandler")]
public virtual void NotifyChange (Android.Net.Uri uri, Android.Database.ContentObserver observer, bool syncToNetwork);
abstract member NotifyChange : Android.Net.Uri * Android.Database.ContentObserver * bool -> unit
override this.NotifyChange : Android.Net.Uri * Android.Database.ContentObserver * bool -> unit

Parameters

uri
Uri Uri

The uri of the content that was changed.

observer
ContentObserver ContentObserver

The observer that originated the change, may be null. The observer that originated the change will only receive the notification if it has requested to receive self-change notifications by implementing DeliverSelfNotifications() to return true.

syncToNetwork
Boolean Boolean

If true, attempt to sync the change to the network.

Remarks

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