Google is committed to advancing racial equity for Black communities. See how.

WorkQuery

class WorkQuery
kotlin.Any
   ↳ androidx.work.WorkQuery

A specification for querying WorkRequests. This is comprised of 3 components; namely unique work names, tags & work states.

A List of unique work names, or a List of WorkRequest tags, or a List of WorkInfo.State can be specified.

Each component in a WorkQuery is AND-ed with the others. Each value in a component is OR-ed.

Example: (name1 OR name2 OR ...) AND (tag1 OR tag2 OR ...) AND (state1 OR state2 OR ...)

Summary

Nested classes

A builder for WorkQuery.

Public methods

MutableList<WorkInfo.State!>

MutableList<String!>

MutableList<String!>

Public methods

getStates

@NonNull fun getStates(): MutableList<WorkInfo.State!>
Return
MutableList<WorkInfo.State!> the List of WorkInfo.States being queried

getTags

@NonNull fun getTags(): MutableList<String!>
Return
MutableList<String!> the List of tags being queried

getUniqueWorkNames

@NonNull fun getUniqueWorkNames(): MutableList<String!>
Return
MutableList<String!> the List of unique works name being queried