Package org.robolectric.shadows
Class ShadowJobScheduler
java.lang.Object
org.robolectric.shadows.ShadowJobScheduler
- Direct Known Subclasses:
ShadowJobScheduler.ShadowJobSchedulerImpl
@Implements(value=android.app.job.JobScheduler.class,
minSdk=21)
public abstract class ShadowJobScheduler
extends Object
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidcancel(int jobId) protected abstract voidprotected abstract intenqueue(JobInfo job, JobWorkItem work) abstract voidfailExpeditedJob(boolean enabled) Whether to fail a job if it is set as expedited.abstract voidfailOnJob(int jobId) abstract JobInfogetPendingJob(int jobId) protected abstract intprotected abstract intscheduleAsPackage(JobInfo job, String packageName, int userId, String tag)
-
Constructor Details
-
ShadowJobScheduler
public ShadowJobScheduler()
-
-
Method Details
-
schedule
-
scheduleAsPackage
-
cancel
@Implementation protected abstract void cancel(int jobId) -
cancelAll
@Implementation protected abstract void cancelAll() -
getAllPendingJobs
-
getPendingJob
-
enqueue
-
failOnJob
public abstract void failOnJob(int jobId) -
failExpeditedJob
public abstract void failExpeditedJob(boolean enabled) Whether to fail a job if it is set as expedited.
-