Builder

class Builder
kotlin.Any
   ↳ androidx.work.Configuration.Builder

A Builder for Configuration.

Summary

Public constructors

Public methods
Configuration.Builder!

Specifies a custom Executor for WorkManager.

Configuration.Builder!
setExecutor(executor: Executor)

Specifies a custom Executor for WorkManager.

Configuration!

Builds a Configuration object.

Public constructors

<init>

Builder()

Public methods

withExecutor

fun withExecutor(executor: Executor): Configuration.Builder!

Specifies a custom Executor for WorkManager.

Parameters
executor Executor: An Executor for processing work
Return
Configuration.Builder!: This Builder instance

setExecutor

fun setExecutor(executor: Executor): Configuration.Builder!

Specifies a custom Executor for WorkManager.

Parameters
executor Executor: An Executor for processing work
Return
Configuration.Builder!: This Builder instance

build

fun build(): Configuration!

Builds a Configuration object.

Return
Configuration!: A Configuration object with this Builder's parameters.