OutOfQuotaPolicy

public final enum OutOfQuotaPolicy
extends Enum<OutOfQuotaPolicy>

java.lang.Object
   ↳ java.lang.Enum<androidx.work.OutOfQuotaPolicy>
     ↳ androidx.work.OutOfQuotaPolicy


An enumeration of policies that help determine out of quota behavior for expedited jobs.

Summary

Enum values

OutOfQuotaPolicy  DROP_WORK_REQUEST

When the app does not have any expedited job quota, the expedited work request will we dropped and no work requests are enqueued. 

OutOfQuotaPolicy  RUN_AS_NON_EXPEDITED_WORK_REQUEST

When the app does not have any expedited job quota, the expedited work request will fallback to a regular work request. 

Public methods

static OutOfQuotaPolicy valueOf(String name)
static final OutOfQuotaPolicy[] values()

Inherited methods

Enum values

DROP_WORK_REQUEST

public static final OutOfQuotaPolicy DROP_WORK_REQUEST

When the app does not have any expedited job quota, the expedited work request will we dropped and no work requests are enqueued.

RUN_AS_NON_EXPEDITED_WORK_REQUEST

public static final OutOfQuotaPolicy RUN_AS_NON_EXPEDITED_WORK_REQUEST

When the app does not have any expedited job quota, the expedited work request will fallback to a regular work request.

Public methods

valueOf

public static OutOfQuotaPolicy valueOf (String name)

Parameters
name String

Returns
OutOfQuotaPolicy

values

public static final OutOfQuotaPolicy[] values ()

Returns
OutOfQuotaPolicy[]