JobScheduler

Class of android.app.job · JobScheduler.java · Android's reference

public abstract class JobScheduler

Jobs: each runs on the main thread after its minimum latency, in its JobService, while the app is open. A namespace (forNamespace) has jobs of its own: the same ID in two namespaces is two jobs.

Nested types

Extended in the framework by

Fields

public static final int RESULT_FAILURE = 0 source
public static final int RESULT_SUCCESS = 1 source

Methods

public JobScheduler forNamespace(String namespace) source

the scheduler of a namespace's jobs

public String getNamespace() source
public abstract int schedule(JobInfo job) source
public abstract void cancel(int jobId) source
public abstract void cancelAll() source
public abstract List<JobInfo> getAllPendingJobs() source
public abstract JobInfo getPendingJob(int jobId) source
public int enqueue(JobInfo job, JobWorkItem work) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.