WorkInfoPojo

data class WorkInfoPojo
kotlin.Any
   ↳ androidx.work.impl.model.WorkSpec.WorkInfoPojo

A POJO containing the ID, state, output, tags, and run attempt count of a WorkSpec.

Summary

Public constructors
WorkInfoPojo(id: String, state: WorkInfo.State, output: Data, runAttemptCount: Int, tags: List<String>, progress: List<Data>)

A POJO containing the ID, state, output, tags, and run attempt count of a WorkSpec.

Public methods
WorkInfo

Converts this POJO to a WorkInfo.

Properties
String

Data

List<Data>

Int

WorkInfo.State

List<String>

Public constructors

WorkInfoPojo

WorkInfoPojo(
    id: String,
    state: WorkInfo.State,
    output: Data,
    runAttemptCount: Int,
    tags: List<String>,
    progress: List<Data>)

A POJO containing the ID, state, output, tags, and run attempt count of a WorkSpec.

Public methods

toWorkInfo

fun toWorkInfo(): WorkInfo

Converts this POJO to a WorkInfo.

Return
The WorkInfo represented by this POJO

Properties

id

var id: String

output

var output: Data

progress

var progress: List<Data>

runAttemptCount

var runAttemptCount: Int

state

var state: WorkInfo.State

tags

var tags: List<String>