public final class OneTimeWorkRequest
extends WorkRequest


A WorkRequest for non-repeating work.

OneTimeWorkRequests can be put in simple or complex graphs of work by using methods like WorkManager.beginWith(OneTimeWorkRequest) or WorkManager.beginWith(List).


Nested classes

class OneTimeWorkRequest.Builder

Builder for OneTimeWorkRequests. 

Inherited constants

Public methods

static List<OneTimeWorkRequest> from(List<Class<? extends ListenableWorker>> workerClasses)

Creates a list of OneTimeWorkRequests with defaults from an array of ListenableWorker class names.

static OneTimeWorkRequest from(Class<? extends ListenableWorker> workerClass)

Creates a OneTimeWorkRequest with defaults from a ListenableWorker class name.

Inherited methods