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