@Implements(value=android.app.job.JobScheduler.class, minSdk=21) public abstract class ShadowJobScheduler extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ShadowJobScheduler.ShadowJobSchedulerImpl |
Constructor and Description |
---|
ShadowJobScheduler() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
cancel(int jobId) |
protected abstract void |
cancelAll() |
protected abstract int |
enqueue(android.app.job.JobInfo job,
android.app.job.JobWorkItem work) |
abstract void |
failOnJob(int jobId) |
protected abstract java.util.List<android.app.job.JobInfo> |
getAllPendingJobs() |
abstract android.app.job.JobInfo |
getPendingJob(int jobId) |
protected abstract int |
schedule(android.app.job.JobInfo job) |
@Implementation protected abstract int schedule(android.app.job.JobInfo job)
@Implementation protected abstract void cancel(int jobId)
@Implementation protected abstract void cancelAll()
@Implementation protected abstract java.util.List<android.app.job.JobInfo> getAllPendingJobs()
@Implementation(minSdk=24) @HiddenApi public abstract android.app.job.JobInfo getPendingJob(int jobId)
@Implementation(minSdk=26) protected abstract int enqueue(android.app.job.JobInfo job, android.app.job.JobWorkItem work)
public abstract void failOnJob(int jobId)