public final class

ListenableWorker.Result.Failure

extends ListenableWorker.Result

 java.lang.Object

androidx.work.ListenableWorker.Result

↳androidx.work.ListenableWorker.Result.Failure

Overview

Used to indicate that the work completed with a permanent failure. Any work that depends on this will also be marked as failed and will not be run. If you need child workers to run, you need to return ListenableWorker.Result.Success; failure indicates a permanent stoppage of the chain of work.

Summary

Constructors
publicFailure()

publicFailure(Data outputData)

Methods
public booleanequals(java.lang.Object o)

public abstract DatagetOutputData()

public inthashCode()

public java.lang.StringtoString()

from ListenableWorker.Resultfailure, failure, retry, success, success
from java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait

Constructors

public Failure()

public Failure(Data outputData)

Parameters:

outputData: A Data object that can be used to keep track of why the work failed

Methods

public abstract Data getOutputData()

Returns:

The output Data which will be merged into the input Data of any OneTimeWorkRequest that is dependent on this work request.

public boolean equals(java.lang.Object o)

public int hashCode()

public java.lang.String toString()