Interface DependentWorkListener

    • Method Detail

      • onDependentWorkCompleted

        boolean onDependentWorkCompleted​(Work dependentWork,
                                         Work currentWork)
        This is called when processing for the relevant dependent Work completes. The dependent request may have finished successfully, failed, been canceled, etc., but no additional work will be done for it.

        Parameters:
        dependentWork - The dependent Work instances that has finished processing.
        currentWork - The work that is dependent on dependentWork and that will be processed next if this implementation returns true.
        Returns:
        Implementations should, based on the results of the dependent work, return true if the current work should continue or false if the current work should be canceled.