Builder
class Builder
kotlin.Any | |
↳ | androidx.work.WorkQuery.Builder |
A builder for WorkQuery
.
Summary
Public methods
addIds
@NonNull fun addIds(@NonNull ids: MutableList<UUID!>): WorkQuery.Builder
Adds a List
of WorkRequest
ids
to the WorkQuery
Parameters | |
---|---|
ids |
MutableList<UUID!>: The List WorkRequest ids to add |
Return | |
---|---|
WorkQuery.Builder |
the instance of the Builder |
addStates
@NonNull fun addStates(@NonNull states: MutableList<WorkInfo.State!>): WorkQuery.Builder
Adds a List
of WorkInfo.State
s to the WorkQuery
.
Parameters | |
---|---|
states |
MutableList<WorkInfo.State!>: The List of WorkInfo.State s to add |
Return | |
---|---|
WorkQuery.Builder |
the instance of the Builder |
addTags
@NonNull fun addTags(@NonNull tags: MutableList<String!>): WorkQuery.Builder
Adds a List
of WorkRequest
tag to the WorkQuery
.
Parameters | |
---|---|
tags |
MutableList<String!>: The List of WorkRequest tags to add |
Return | |
---|---|
WorkQuery.Builder |
the instance of the Builder |
addUniqueWorkNames
@NonNull fun addUniqueWorkNames(@NonNull uniqueWorkNames: MutableList<String!>): WorkQuery.Builder
Adds a List
of uniqueWorkNames
to the WorkQuery
Parameters | |
---|---|
uniqueWorkNames |
MutableList<String!>: The List of unique work names to add |
Return | |
---|---|
WorkQuery.Builder |
the instance of the Builder |
build
@NonNull fun build(): WorkQuery
Creates an instance of WorkQuery
.
Return | |
---|---|
WorkQuery |
the WorkQuery instance |
fromIds
@NonNull static fun fromIds