Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

WorkInfo

class WorkInfo
kotlin.Any
   ↳ androidx.work.WorkInfo

Information about a particular WorkRequest containing the id of the WorkRequest, its current State, output, and tags. Note that output is only available for the terminal states (State#SUCCEEDED and State#FAILED).

Summary

Nested classes

The current lifecycle state of a WorkRequest.

Public methods
WorkInfo.State

Gets the current State of the WorkRequest.

Int

Data

Gets the output Data for the WorkRequest.

Boolean
equals(other: Any?)

String

UUID

Gets the identifier of the WorkRequest.

MutableSet<String!>

Gets the Set of tags associated with the WorkRequest.

Public methods

getState

@NonNull fun getState(): WorkInfo.State

Gets the current State of the WorkRequest.

Return
WorkInfo.State: The current State of the WorkRequest

hashCode

fun hashCode(): Int

getOutputData

@NonNull fun getOutputData(): Data

Gets the output Data for the WorkRequest. If the WorkRequest is unfinished, this is always Data#EMPTY.

Return
Data: The output Data of the WorkRequest

equals

fun equals(other: Any?): Boolean

toString

fun toString(): String

getId

@NonNull fun getId(): UUID

Gets the identifier of the WorkRequest.

Return
UUID: The identifier of a WorkRequest

getTags

@NonNull fun getTags(): MutableSet<String!>

Gets the Set of tags associated with the WorkRequest.

Return
MutableSet<String!>: The Set of tags associated with the WorkRequest