Configuration.Builder

public static final class Configuration.Builder
extends Object

java.lang.Object
   ↳ androidx.work.Configuration.Builder


A Builder for Configuration.

Summary

Public constructors

Configuration.Builder()

Public methods

Configuration build()

Builds a Configuration object.

Configuration.Builder setExecutor(Executor executor)

Specifies a custom Executor for WorkManager.

Configuration.Builder withExecutor(Executor executor)

This method is deprecated. Use the setExecutor(Executor) method instead

Inherited methods

Public constructors

Configuration.Builder

public Configuration.Builder ()

Public methods

build

public Configuration build ()

Builds a Configuration object.

Returns
Configuration A Configuration object with this Configuration.Builder's parameters.

setExecutor

public Configuration.Builder setExecutor (Executor executor)

Specifies a custom Executor for WorkManager.

Parameters
executor Executor: An Executor for processing work

Returns
Configuration.Builder This Configuration.Builder instance

withExecutor

public Configuration.Builder withExecutor (Executor executor)

This method is deprecated.
Use the setExecutor(Executor) method instead

Specifies a custom Executor for WorkManager.

Parameters
executor Executor: An Executor for processing work

Returns
Configuration.Builder This Configuration.Builder instance