22
edits
(→API) |
No edit summary |
||
Line 37: | Line 37: | ||
// Create a watcher which will call the callback function every time files are updated | // Create a watcher which will call the callback function every time files are updated | ||
// callback will take the DeviceStorage, the file's name, and the update type, which will be one of "created", "deleted", or "modified" | // callback will take the DeviceStorage, the file's name, and the update type, which will be one of "created", "deleted", or "modified" | ||
boolean addFileWatcher(Function callback); | |||
// returns true if there was a watcher with this id, and false otherwise. | // returns true if there was a watcher with this id, and false otherwise. | ||
boolean removeFileWatcher( | boolean removeFileWatcher(Function callback); | ||
// See interface below for how to use this | // See interface below for how to use this |
edits