Class 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 Detail

      • ShadowFileObserver

        public ShadowFileObserver()
    • Method Detail

      • __constructor__

        @Implementation
        protected void __constructor__​(String path,
                                       int mask)
      • __constructor__

        @Implementation(minSdk=29)
        protected void __constructor__​(List<File> files,
                                       int mask)
      • stopWatching

        @Implementation
        protected void stopWatching()