WebAPI/ProposedDeviceStorageAPIWithNotifications: Difference between revisions

Jump to navigation Jump to search
Line 36: Line 36:
   
   
   // Watches a file for updates
   // Watches a file for updates
   // handler takes the file's name and an event type.
   // handler takes the file's name and an UpdateType.
   // onError is an optional argument which is called if the process throws an error.
   // onError is an optional argument which is called if the process throws an error.
   // type is intended to be a list (probably a bitfield) of event types to watch for, the options being creation, deletion, and modification.
   // type is intended to be a list (probably a bitfield) of event types to watch for, the options being creation, deletion, and modification.
Line 43: Line 43:
   
   
   // Watches all files for updates
   // Watches all files for updates
   // handler takes the changed file's name and and an event type
   // handler takes the changed file's name and and an UpdateType
   // onError is an optional argument which is called if the process throws an error.
   // onError is an optional argument which is called if the process throws an error.
   // type is intended to be a list (probably a bitfield) of event types to watch for, the options being creation, deletion, and modification.
   // type is intended to be a list (probably a bitfield) of event types to watch for, the options being creation, deletion, and modification.
22

edits

Navigation menu