Package org.robolectric.shadows
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.
-
-
Constructor Summary
Constructors Constructor Description ShadowFileObserver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
__constructor__(String path, int mask)
protected void
__constructor__(List<File> files, int mask)
protected void
finalize()
protected void
startWatching()
protected void
stopWatching()
-
-
-
Method Detail
-
finalize
@Implementation protected void finalize() throws Throwable
-
__constructor__
@Implementation protected void __constructor__(String path, int mask)
-
__constructor__
@Implementation(minSdk=29) protected void __constructor__(List<File> files, int mask)
-
startWatching
@Implementation protected void startWatching() throws IOException
- Throws:
IOException
-
stopWatching
@Implementation protected void stopWatching()
-
-