Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

Provider

interface Provider
androidx.work.Configuration.Provider

A class that can provide the Configuration for WorkManager and allow for on-demand initialization of WorkManager. To do this:

Note that on-demand initialization may delay some useful features of WorkManager such as automatic rescheduling of work following a crash and recovery from the application being force-stopped by the user or device.

Summary

Public methods

abstract Configuration

Public methods

getWorkManagerConfiguration

@NonNull abstract fun getWorkManagerConfiguration(): Configuration
Return
Configuration: The Configuration used to initialize WorkManager