lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

WorkStatus

public final class WorkStatus
extends Object

java.lang.Object
   ↳ androidx.work.WorkStatus


A simple class with the id of a WorkRequest, its current State, output, and tags. Note that output is only available for terminal states (State.SUCCEEDED and State.FAILED).

Summary

Public constructors

WorkStatus(UUID id, State state, Data outputData, List<String> tags)

Public methods

boolean equals(Object o)
UUID getId()
Data getOutputData()
State getState()
Set<String> getTags()
int hashCode()
String toString()

Inherited methods

Public constructors

WorkStatus

public WorkStatus (UUID id, 
                State state, 
                Data outputData, 
                List<String> tags)

Parameters
id UUID

state State

outputData Data

tags List

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getId

public UUID getId ()

Returns
UUID

getOutputData

public Data getOutputData ()

Returns
Data

getState

public State getState ()

Returns
State

getTags

public Set<String> getTags ()

Returns
Set<String>

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String