public interface

ConstraintController.OnConstraintUpdatedCallback

 androidx.work.impl.constraints.controllers.ConstraintController.OnConstraintUpdatedCallback

Subclasses:

WorkConstraintsTracker

Overview

A callback for when a constraint changes.

Summary

Methods
public voidonConstraintMet(java.util.List<java.lang.String> workSpecIds)

Called when a constraint is met.

public voidonConstraintNotMet(java.util.List<java.lang.String> workSpecIds)

Called when a constraint is not met.

Methods

public void onConstraintMet(java.util.List<java.lang.String> workSpecIds)

Called when a constraint is met.

Parameters:

workSpecIds: A list of WorkSpec IDs that may have become eligible to run

public void onConstraintNotMet(java.util.List<java.lang.String> workSpecIds)

Called when a constraint is not met.

Parameters:

workSpecIds: A list of WorkSpec IDs that have become ineligible to run