public interface StateChangedListener
StateController
informs
the JobSchedulerService
that there are some tasks potentially
ready to be run.Modifier and Type | Method and Description |
---|---|
void |
onControllerStateChanged()
Called by the controller to notify the JobManager that it should check on the state of a
task.
|
void |
onDeviceIdleStateChanged(boolean deviceIdle) |
void |
onRunJobNow(JobStatus jobStatus)
Called by the controller to notify the JobManager that regardless of the state of the task,
it must be run immediately.
|
void onControllerStateChanged()
void onRunJobNow(JobStatus jobStatus)
jobStatus
- The state of the task which is to be run immediately. null
indicates to the scheduler that any ready jobs should be flushed.void onDeviceIdleStateChanged(boolean deviceIdle)