Class ShadowJobService


  • @Implements(value=android.app.job.JobService.class,
                minSdk=21)
    public class ShadowJobService
    extends ShadowService
    • Constructor Detail

      • ShadowJobService

        public ShadowJobService()
    • Method Detail

      • jobFinished

        @Implementation
        protected void jobFinished​(android.app.job.JobParameters params,
                                   boolean needsReschedule)
      • getIsJobFinished

        public boolean getIsJobFinished()
        Returns whether the job has finished running. When using this shadow this returns true after jobFinished(JobParameters, boolean) is called.
      • getIsRescheduleNeeded

        public boolean getIsRescheduleNeeded()
        Returns whether the job needs to be rescheduled. When using this shadow it returns the last value passed into jobFinished(JobParameters, boolean).