WorkInfo

public final class WorkInfo
extends Object

java.lang.Object
   ↳ androidx.work.WorkInfo


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

Summary

Nested classes

enum WorkInfo.State

The current state of a unit of work. 

Public methods

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

Inherited methods

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 WorkInfo.State getState ()

Returns
WorkInfo.State

getTags

public Set<String> getTags ()

Returns
Set<String>

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String