Partager via


ContentObserver.DispatchChange Method

Definition

Overloads

DispatchChange(Boolean)
Obsolete.

Dispatches a change notification to the observer.

DispatchChange(Boolean, Uri)

Dispatches a change notification to the observer.

DispatchChange(Boolean, Uri, Int32)

Dispatches a change notification to the observer.

DispatchChange(Boolean, ICollection<Uri>, Int32)

Dispatches a change notification to the observer.

DispatchChange(Boolean)

Caution

deprecated

Dispatches a change notification to the observer.

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

Parameters

selfChange
Boolean

True if this is a self-change notification.

Attributes

Remarks

Dispatches a change notification to the observer.

If a Handler was supplied to the ContentObserver constructor, then a call to the #onChange method is posted to the handler's message queue. Otherwise, the #onChange method is invoked immediately on this thread.

This member is deprecated. Callers should migrate towards using a richer overload that provides more details about the change, such as #dispatchChange(boolean, Collection, int).

Java documentation for android.database.ContentObserver.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)

Dispatches a change notification to the observer.

[Android.Runtime.Register("dispatchChange", "(ZLandroid/net/Uri;)V", "")]
public void DispatchChange (bool selfChange, Android.Net.Uri? uri);
[<Android.Runtime.Register("dispatchChange", "(ZLandroid/net/Uri;)V", "")>]
member 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.

Attributes

Remarks

Dispatches a change notification to the observer. Includes the changed content Uri when available.

If a Handler was supplied to the ContentObserver constructor, then a call to the #onChange method is posted to the handler's message queue. Otherwise, the #onChange method is invoked immediately on this thread.

Java documentation for android.database.ContentObserver.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

DispatchChange(Boolean, Uri, Int32)

Dispatches a change notification to the observer.

[Android.Runtime.Register("dispatchChange", "(ZLandroid/net/Uri;I)V", "", ApiSince=30)]
public void DispatchChange (bool selfChange, Android.Net.Uri? uri, int flags);
[<Android.Runtime.Register("dispatchChange", "(ZLandroid/net/Uri;I)V", "", ApiSince=30)>]
member this.DispatchChange : bool * Android.Net.Uri * int -> unit

Parameters

selfChange
Boolean

True if this is a self-change notification.

uri
Uri

The Uri of the changed content.

flags
Int32

Flags indicating details about this change.

Attributes

Remarks

Dispatches a change notification to the observer. Includes the changed content Uri when available.

If a Handler was supplied to the ContentObserver constructor, then a call to the #onChange method is posted to the handler's message queue. Otherwise, the #onChange method is invoked immediately on this thread.

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

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, ICollection<Uri>, Int32)

Dispatches a change notification to the observer.

[Android.Runtime.Register("dispatchChange", "(ZLjava/util/Collection;I)V", "", ApiSince=30)]
public void DispatchChange (bool selfChange, System.Collections.Generic.ICollection<Android.Net.Uri> uris, int flags);
[<Android.Runtime.Register("dispatchChange", "(ZLjava/util/Collection;I)V", "", ApiSince=30)>]
member this.DispatchChange : bool * System.Collections.Generic.ICollection<Android.Net.Uri> * int -> unit

Parameters

selfChange
Boolean

True if this is a self-change notification.

uris
ICollection<Uri>

The Uri of the changed content.

flags
Int32

Flags indicating details about this change.

Attributes

Remarks

Dispatches a change notification to the observer. Includes the changed content Uris when available.

If a Handler was supplied to the ContentObserver constructor, then a call to the #onChange method is posted to the handler's message queue. Otherwise, the #onChange method is invoked immediately on this thread.

Java documentation for android.database.ContentObserver.dispatchChange(boolean, java.util.Collection<android.net.Uri>, int).

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