Android 12 Developer Preview is here! Try it out, and give us your feedback!

Builder

class Builder : WorkRequest.Builder<OneTimeWorkRequest.Builder!, OneTimeWorkRequest!>
kotlin.Any
   ↳ androidx.work.WorkRequest.Builder<androidx.work.OneTimeWorkRequest.Builder, androidx.work.OneTimeWorkRequest>
   ↳ androidx.work.OneTimeWorkRequest.Builder

Builder for OneTimeWorkRequests.

Summary

Public constructors
<init>(@NonNull workerClass: Class<out ListenableWorker!>)

Creates a OneTimeWorkRequest.

Public methods
OneTimeWorkRequest.Builder
setInputMerger(@NonNull inputMerger: Class<out InputMerger!>)

Specifies the InputMerger class name for this OneTimeWorkRequest.

Inherited functions
Extension functions
From androidx.work
OneTimeWorkRequest.Builder

Sets an InputMerger on the OneTimeWorkRequest.Builder.

Public constructors

<init>

Builder(@NonNull workerClass: