Class ContextTask<T,P,R>

Type Parameters:
T - The type of the params.
P - The type of the progress.
R - The type of the result.
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
FileWriteTask

public abstract class ContextTask<T,P,R> extends DynamicTask<T,P,R>
A DynamicTask to perform operations with Context.
  • Constructor Details

    • ContextTask

      public ContextTask(@Nullable Context context)
      Constructor to initialize an object of this class.
      Parameters:
      context - The context for this task.
  • Method Details

    • getContext

      @Nullable public Context getContext()
      Get the context used by this task.
      Returns:
      The context used by this task.