All Implemented Interfaces:
Runnable

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.
      Parameters:
      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>
      Parameters:
      params - The optional parameters required for the work.
      Returns:
      The optional result object.
    • getSource

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

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