Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

Configuration

public final class Configuration
extends Object

java.lang.Object
   ↳ androidx.work.Configuration


Configuration for WorkManager.

Summary

Nested classes

class Configuration.Builder

A Builder for Configuration

Constants

int MIN_SCHEDULER_LIMIT

The minimum number of system requests which can be enqueued by WorkManager when using JobScheduler or AlarmManager.

Public methods

Executor getExecutor()
int getMaxJobSchedulerID()
int getMinJobSchedulerID()

Inherited methods

Constants

MIN_SCHEDULER_LIMIT

public static final int MIN_SCHEDULER_LIMIT

The minimum number of system requests which can be enqueued by WorkManager when using JobScheduler or AlarmManager.

Constant Value: 20 (0x00000014)

Public methods

getExecutor

public Executor getExecutor ()

Returns
Executor The Executor used by WorkManager to execute Workers.

getMaxJobSchedulerID

public int getMaxJobSchedulerID ()

Returns
int The last valid id (inclusive) used by WorkManager when creating new instances of JobInfos. If the current jobId goes beyond the bounds of the defined range of (getMinJobSchedulerID(), getMaxJobSchedulerID()), it is reset to (getMinJobSchedulerID()).

getMinJobSchedulerID

public int getMinJobSchedulerID ()

Returns
int The first valid id (inclusive) used by WorkManager when creating new instances of JobInfos. If the current jobId goes beyond the bounds of the defined range of (getMinJobSchedulerID(), getMaxJobSchedulerID()), it is reset to (getMinJobSchedulerID()).