Example usage for Java android.os FileObserver fields, constructors, methods, implement or subclass
The text is from its open source code.
int | ACCESS Event type: Data was read from a file |
int | MODIFY Event type: Data was written to a file |
int | ATTRIB Event type: Metadata (permissions, owner, timestamp) was changed explicitly |
int | CLOSE_WRITE Event type: Someone had a file or directory open for writing, and closed it |
int | CLOSE_NOWRITE Event type: Someone had a file or directory open read-only, and closed it |
int | OPEN Event type: A file or directory was opened |
int | MOVED_FROM Event type: A file or subdirectory was moved from the monitored directory |
int | MOVED_TO Event type: A file or subdirectory was moved to the monitored directory |
int | CREATE Event type: A new file or subdirectory was created under the monitored directory |
int | DELETE Event type: A file was deleted from the monitored directory |
int | DELETE_SELF Event type: The monitored file or directory was deleted; monitoring effectively stops |
int | MOVE_SELF Event type: The monitored file or directory was moved; monitoring continues |
int | ALL_EVENTS Event mask: All valid event types, combined |
FileObserver(String path, int mask) Create a new file observer for a certain file or directory. | |
FileObserver(String path) Equivalent to FileObserver(path, FileObserver.ALL_EVENTS). |
void | startWatching() Start watching for events. |
void | stopWatching() Stop watching for events. |