WorkManagerInitializer

public final class WorkManagerInitializer
extends Object implements Initializer<WorkManager>

java.lang.Object
   ↳ androidx.work.WorkManagerInitializer


Initializes WorkManager using androidx.startup.

Summary

Public constructors

WorkManagerInitializer()

Public methods

WorkManager create(Context context)

Initializes and a component given the application Context

List<Class<? extends Initializer<?>>> dependencies()

Inherited methods

Public constructors

WorkManagerInitializer

public WorkManagerInitializer ()

Public methods

create

public WorkManager create (Context context)

Initializes and a component given the application Context

Parameters
context Context: The application context.

Returns
WorkManager

dependencies

public List<Class<? extends Initializer<?>>> dependencies ()

Returns
List<Class<? extends Initializer<?>>>