public enum WorkManager.UpdateResult extends Enum

An enumeration of results for WorkManager.updateWork method.

Summary

Enum Values

APPLIED_FOR_NEXT_RUN

An update was successfully applied, but the worker being updated was running.

APPLIED_IMMEDIATELY

An update was successfully applied immediately, meaning the updated work wasn't currently running in the moment of the request.

NOT_APPLIED

An update wasn't applied, because Worker has already finished.

Enum Values

APPLIED_FOR_NEXT_RUN

WorkManager.UpdateResult WorkManager.UpdateResult.APPLIED_FOR_NEXT_RUN

An update was successfully applied, but the worker being updated was running. This run isn't interrupted and will continue to rely on previous state of the request, e.g. using old constraints, tags etc. However, on the next run, e.g. retry of one-time Worker or another iteration of periodic worker, the new worker specification. will be used.

Public methods

valueOf

public final @NonNull WorkManager.UpdateResult valueOf(@NonNull String value)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values

public final @NonNull WorkManager.UpdateResult[] values()

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.