Android Guides | Samples

Android.OS.FileObserverEvents Enumeration

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

Syntax

[System.Flags]
public enum FileObserverEvents

Remarks

Members

Member NameDescription
AccessEvent type: Data was read from a file
AllEventsEvent mask: All valid event types, combined
AttribEvent type: Metadata (permissions, owner, timestamp) was changed explicitly
CloseNowriteEvent type: Someone had a file or directory open read-only, and closed it
CloseWriteEvent type: Someone had a file or directory open for writing, and closed it
CreateEvent type: A new file or subdirectory was created under the monitored directory
DeleteEvent type: A file was deleted from the monitored directory
DeleteSelfEvent type: The monitored file or directory was deleted; monitoring effectively stops
ModifyEvent type: Data was written to a file
MovedFromEvent type: A file or subdirectory was moved from the monitored directory
MovedToEvent type: A file or subdirectory was moved to the monitored directory
MoveSelfEvent type: The monitored file or directory was moved; monitoring continues
OpenEvent type: A file or directory was opened

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.OS.FileObserverEvents are listed below.

See Also: Enum

Public Fields

AccessFileObserverEvents. Event type: Data was read from a file
AllEventsFileObserverEvents. Event mask: All valid event types, combined
AttribFileObserverEvents. Event type: Metadata (permissions, owner, timestamp) was changed explicitly
CloseNowriteFileObserverEvents. Event type: Someone had a file or directory open read-only, and closed it
CloseWriteFileObserverEvents. Event type: Someone had a file or directory open for writing, and closed it
CreateFileObserverEvents. Event type: A new file or subdirectory was created under the monitored directory
DeleteFileObserverEvents. Event type: A file was deleted from the monitored directory
DeleteSelfFileObserverEvents. Event type: The monitored file or directory was deleted; monitoring effectively stops
ModifyFileObserverEvents. Event type: Data was written to a file
MovedFromFileObserverEvents. Event type: A file or subdirectory was moved from the monitored directory
MovedToFileObserverEvents. Event type: A file or subdirectory was moved to the monitored directory
MoveSelfFileObserverEvents. Event type: The monitored file or directory was moved; monitoring continues
OpenFileObserverEvents. Event type: A file or directory was opened