android.os
Class FileObserver
java.lang.Object
android.os.FileObserver
public abstract class FileObserver
- extends Object
ACCESS
public static final int ACCESS
- See Also:
- Constant Field Values
MODIFY
public static final int MODIFY
- See Also:
- Constant Field Values
ATTRIB
public static final int ATTRIB
- See Also:
- Constant Field Values
CLOSE_WRITE
public static final int CLOSE_WRITE
- See Also:
- Constant Field Values
CLOSE_NOWRITE
public static final int CLOSE_NOWRITE
- See Also:
- Constant Field Values
OPEN
public static final int OPEN
- See Also:
- Constant Field Values
MOVED_FROM
public static final int MOVED_FROM
- See Also:
- Constant Field Values
MOVED_TO
public static final int MOVED_TO
- See Also:
- Constant Field Values
CREATE
public static final int CREATE
- See Also:
- Constant Field Values
DELETE
public static final int DELETE
- See Also:
- Constant Field Values
DELETE_SELF
public static final int DELETE_SELF
- See Also:
- Constant Field Values
MOVE_SELF
public static final int MOVE_SELF
- See Also:
- Constant Field Values
ALL_EVENTS
public static final int ALL_EVENTS
- See Also:
- Constant Field Values
FileObserver
public FileObserver(String path)
FileObserver
public FileObserver(String path,
int mask)
finalize
protected void finalize()
- Description copied from class:
Object
- Called by the virtual machine when there are no longer any (non-weak)
references to the receiver. Subclasses can use this facility to guarantee
that any associated resources are cleaned up before the receiver is
garbage collected. Uncaught exceptions which are thrown during the
running of the method cause it to terminate immediately, but are
otherwise ignored.
Note: The virtual machine assumes that the implementation in class Object
is empty.
- Overrides:
finalize in class Object
startWatching
public void startWatching()
stopWatching
public void stopWatching()
onEvent
public abstract void onEvent(int event,
String path)
Please submit a feedback, bug or feature