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:
    java.lang.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 Detail

      • ContextTask

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

      • getContext

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