Class Dumper


  • public class Dumper
    extends Object
    • Constructor Detail

      • Dumper

        @MainThread
        public Dumper​(Uri uri,
                      String filepath,
                      Dumper.Listener listener)
        Create a Dumper that will download an Uri into a local filesystem path
        Parameters:
        uri - the Uri to dump
        filepath - local filesystem path where to dump the Uri
        listener - listener in order to be notified when the dump is finished
    • Method Detail

      • start

        @MainThread
        public void start()
        Start to dump
      • cancel

        @MainThread
        public void cancel()
        Cancel the dump of the Uri. Don't call this method if you already received the Dumper.Listener.onFinish(boolean) callback.