Class ShadowFileObserver

java.lang.Object
org.robolectric.shadows.ShadowFileObserver

@Implements(android.os.FileObserver.class) public class ShadowFileObserver extends Object
A shadow implementation of FileObserver that uses java.nio.file.WatchService.

Currently only supports MODIFY, DELETE and CREATE (CREATE will encompass also events that would normally register as MOVED_FROM, and DELETE will encompass also events that would normally register as MOVED_TO). Other event types will be silently ignored.