Language

FileObserverEvents Enum

Definition

Enumerates values returned by several methods of FileObserverEvents and taken as a parameter of the F:Android.OS.FileObserver..ctor, and F:Android.OS.FileObserver.OnEvent members.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum FileObserverEvents
[<System.Flags>]
type FileObserverEvents = 
Inheritance
FileObserverEvents
Attributes

Fields

Name Value Description
Access 1

Event type: Data was read from a file

Modify 2

Event type: Data was written to a file

Attrib 4

Event type: Metadata (permissions, owner, timestamp) was changed explicitly

CloseWrite 8

Event type: Someone had a file or directory open for writing, and closed it

CloseNowrite 16

Event type: Someone had a file or directory open read-only, and closed it

Open 32

Event type: A file or directory was opened

MovedFrom 64

Event type: A file or subdirectory was moved from the monitored directory

MovedTo 128

Event type: A file or subdirectory was moved to the monitored directory

Create 256

Event type: A new file or subdirectory was created under the monitored directory

Delete 512

Event type: A file was deleted from the monitored directory

DeleteSelf 1024

Event type: The monitored file or directory was deleted; monitoring effectively stops

MoveSelf 2048

Event type: The monitored file or directory was moved; monitoring continues

AllEvents 4095

Event mask: All valid event types, combined. Value is either 0 or a combination of the following: ACCESS MODIFY ATTRIB CLOSE_WRITE CLOSE_NOWRITE OPEN MOVED_FROM MOVED_TO CREATE DELETE DELETE_SELF MOVE_SELF

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.os.FileObserver.

Applies to