Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

WorkQuery

public final class WorkQuery
extends Object

java.lang.Object
   ↳ androidx.work.WorkQuery


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

A List of WorkRequest ids, or 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: (id1 OR id2 OR ...) AND (name1 OR name2 OR ...) AND (tag1 OR tag2 OR ...) AND (state1 OR state2 OR ...)

Summary

Nested classes

class WorkQuery.Builder

A builder for WorkQuery

Public methods

List<UUID> getIds()
List<WorkInfo.State> getStates()
List<String> getTags()
List<String> getUniqueWorkNames()

Inherited methods

Public methods

getIds

public List<UUID> getIds ()

Returns
List<UUID> The List of WorkRequest ids being queried.

getStates

public List<WorkInfo.State> getStates ()

Returns
List<WorkInfo.State> the List of WorkInfo.States being queried

getTags

public List<String> getTags ()

Returns
List<String> the List of tags being queried

getUniqueWorkNames

public List<String> getUniqueWorkNames ()

Returns
List<String> the List of unique works name being queried