public final class

ListenableWorker.Result.Success

extends ListenableWorker.Result

 java.lang.Object

androidx.work.ListenableWorker.Result

↳androidx.work.ListenableWorker.Result.Success

Overview

Used to indicate that the work completed successfully. Any work that depends on this can be executed as long as all of its other dependencies and constraints are met.

Summary

Constructors
publicSuccess()

publicSuccess(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 Success()

public Success(Data outputData)

Parameters:

outputData: A Data object that will be merged into the input Data of any OneTimeWorkRequest that is dependent on this work

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()