NotifyChangeFlags Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies change details supplied when notifying observers through ContentResolver.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum NotifyChangeFlags
[<System.Flags>]
type NotifyChangeFlags =
- Inheritance
-
NotifyChangeFlags
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| SyncToNetwork | 1 | Flag for notifyChange(Uri,ContentObserver,int) : attempt to sync the change to the network. |
| SkipNotifyForDescendants | 2 | Flag for notifyChange(Uri,ContentObserver,int) : if set, this notification will be skipped if it is being delivered to the root URI of a ContentObserver that is using "notify for descendants." The purpose of this is to allow the provide to send a general notification of "something under X" changed that observers of that specific URI can receive, while also sending a specific URI under X. It would use this flag when sending the former, so that observers of "X and descendants" only see the latter. |
| Insert | 4 | Flag for notifyChange(Uri,ContentObserver,int) : typically set by a ContentProvider to indicate that this notification is the result of an ContentProvider.insert call. Sending these detailed flags are optional, but providers are strongly recommended to send them. |
| Update | 8 | Flag for notifyChange(Uri,ContentObserver,int) : typically set by a ContentProvider to indicate that this notification is the result of an ContentProvider.update call. Sending these detailed flags are optional, but providers are strongly recommended to send them. |
| Delete | 16 | Flag for notifyChange(Uri,ContentObserver,int) : typically set by a ContentProvider to indicate that this notification is the result of a ContentProvider.delete call. Sending these detailed flags are optional, but providers are strongly recommended to send them. |
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.
Java documentation for android.content.ContentResolver.