OneTimeWorkRequest

class OneTimeWorkRequest : WorkRequest
kotlin.Any
   ↳ androidx.work.WorkRequest
   ↳ androidx.work.OneTimeWorkRequest

A class that represents a request for non-repeating work.

Summary

Nested classes

Builder for OneTimeWorkRequest class.

Inherited constants
Public methods
static MutableList<OneTimeWorkRequest!>
from(vararg workerClasses: Class<out Worker!>!)

Creates an array of OneTimeWorkRequest with defaults from an array of Worker class names.

static MutableList<OneTimeWorkRequest!>
from(workerClasses: MutableList<Class<out Worker!>!>)

Creates a list of OneTimeWorkRequest with defaults from an array of Worker class names.

Inherited functions

Public methods

from

static fun from(vararg workerClasses: Class<out Worker!>!): MutableList<OneTimeWorkRequest!>

Creates an array of OneTimeWorkRequest with defaults from an array of Worker class names.

Parameters
workerClasses Class<out Worker!>!: An array of Worker class names
Return
MutableList<OneTimeWorkRequest!>: A list of OneTimeWorkRequest constructed by using defaults in the Builder

from

static fun from(workerClasses: MutableList<Class<out Worker!>!>): MutableList<OneTimeWorkRequest!>

Creates a list of OneTimeWorkRequest with defaults from an array of Worker class names.

Parameters
workerClasses MutableList<Class<out Worker!>!>: A list of Worker class names
Return
MutableList<OneTimeWorkRequest!>: A list of OneTimeWorkRequest constructed by using defaults in the