All Implemented Interfaces:

public class FileWriteTask extends ContextTask<Void,Void,Boolean>
A DynamicTask to write a file Uri from source to the destination.
  • Constructor Details

    • FileWriteTask

      public FileWriteTask(@Nullable Context context, @Nullable Uri source, @Nullable Uri destination)
      Constructor to initialize an object of this class.
      context - The context to get the content resolver.
      source - The URI of the source file.
      destination - The URI of the destination file.
      See Also:
  • Method Details

    • doInBackground

      @Nullable protected Boolean doInBackground(@Nullable Void params)
      Description copied from class: DynamicRunnable
      This method will be called for doing the background work.
      Specified by:
      doInBackground in class DynamicRunnable<Void,Void,Boolean>
      params - The optional parameters required for the work.
      The optional result object.
    • getSource

      @Nullable public Uri getSource()
      Get the source URI used by this task.
      The source URI used by this task.
    • getDestination

      @Nullable public Uri getDestination()
      Get the destination URI used by this task.
      The destination URI used by this task.