class DirectoryWatcher

Defined at line 23 of file ../../sdk/lib/component/incoming/cpp/directory_watcher.h

A watcher for directory entries.

Watching is automatically stopped on destruction.

Public Methods

zx_status_t Begin (fidl::UnownedClientEnd<fuchsia_io::Directory> dir, Callback callback, async_dispatcher_t * dispatcher)

Begins watching for entries in the provided directory.

When an entry is found, calls

the callback function with the entry name and the event type.

Begin will return ZX_ERR_UNAVAILABLE if it is called multiple times

without Cancel called first.

Defined at line 10 of file ../../sdk/lib/component/incoming/cpp/directory_watcher.cc

zx_status_t Cancel ()

Cancels watching for directory entries.

Defined at line 38 of file ../../sdk/lib/component/incoming/cpp/directory_watcher.cc