@Implements(value=android.app.job.JobService.class, minSdk=21) public class ShadowJobService extends ShadowService
Constructor and Description |
---|
ShadowJobService() |
Modifier and Type | Method and Description |
---|---|
boolean |
getIsJobFinished()
Returns whether the job has finished running.
|
boolean |
getIsRescheduleNeeded()
Returns whether the job needs to be rescheduled.
|
protected void |
jobFinished(JobParameters params,
boolean needsReschedule) |
getLastForegroundNotification, getLastForegroundNotificationId, getNotificationShouldRemoved, getStopSelfId, getStopSelfResultId, isForegroundStopped, isLastForegroundNotificationAttached, isStoppedBySelf, onDestroy, startForeground, stopForeground, stopForeground, stopSelf, stopSelf, stopSelfResult
clearNextStartedActivities, clearStartedServices, denyPermissions, denyPermissions, getBroadcastIntents, getNextStartedActivity, getNextStartedActivityForResult, getNextStartedService, getNextStoppedService, grantPermissions, grantPermissions, peekNextStartedActivity, peekNextStartedActivityForResult, peekNextStartedService, removeSystemService
@Implementation protected void jobFinished(JobParameters params, boolean needsReschedule)
public boolean getIsJobFinished()
Returns whether the job has finished running. When using this shadow this returns true after jobFinished(JobParameters, boolean)
is called.
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)
.