Partager via


ContentObservable.DispatchChange Method

Definition

Overloads

DispatchChange(Boolean)
Obsolete.

Invokes ContentObserver#dispatchChange(boolean) on each observer.

DispatchChange(Boolean, Uri)

Invokes ContentObserver#dispatchChange(boolean, Uri) on each observer.

DispatchChange(Boolean)

Caution

deprecated

Invokes ContentObserver#dispatchChange(boolean) on each observer.

[Android.Runtime.Register("dispatchChange", "(Z)V", "GetDispatchChange_ZHandler")]
[System.Obsolete("deprecated")]
public virtual void DispatchChange (bool selfChange);
[<Android.Runtime.Register("dispatchChange", "(Z)V", "GetDispatchChange_ZHandler")>]
[<System.Obsolete("deprecated")>]
abstract member DispatchChange : bool -> unit
override this.DispatchChange : bool -> unit

Parameters

selfChange
Boolean

True if this is a self-change notification.

Attributes

Remarks

Invokes ContentObserver#dispatchChange(boolean) on each observer.

If selfChange is true, only delivers the notification to the observer if it has indicated that it wants to receive self-change notifications by implementing ContentObserver#deliverSelfNotifications to return true.

This member is deprecated. Use #dispatchChange(boolean, Uri) instead.

Java documentation for android.database.ContentObservable.dispatchChange(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

DispatchChange(Boolean, Uri)

Invokes ContentObserver#dispatchChange(boolean, Uri) on each observer.

[Android.Runtime.Register("dispatchChange", "(ZLandroid/net/Uri;)V", "GetDispatchChange_ZLandroid_net_Uri_Handler")]
public virtual void DispatchChange (bool selfChange, Android.Net.Uri? uri);
[<Android.Runtime.Register("dispatchChange", "(ZLandroid/net/Uri;)V", "GetDispatchChange_ZLandroid_net_Uri_Handler")>]
abstract member DispatchChange : bool * Android.Net.Uri -> unit
override this.DispatchChange : bool * Android.Net.Uri -> unit

Parameters

selfChange
Boolean

True if this is a self-change notification.

uri
Uri

The Uri of the changed content, or null if unknown.

Attributes

Remarks

Invokes ContentObserver#dispatchChange(boolean, Uri) on each observer. Includes the changed content Uri when available.

If selfChange is true, only delivers the notification to the observer if it has indicated that it wants to receive self-change notifications by implementing ContentObserver#deliverSelfNotifications to return true.

Java documentation for android.database.ContentObservable.dispatchChange(boolean, android.net.Uri).

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