| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o) | 
| long | getBackoffMs()Only valid if the job isn't periodic. | 
| JobRequest.BackoffPolicy | getBackoffPolicy()Only valid if the job isn't periodic. | 
| long | getEndMs()Only valid if the job isn't periodic. | 
| PersistableBundleCompat | getExtras() | 
| int | getFailureCount() | 
| long | getFlexMs()Flex time for this job. | 
| int | getId() | 
| long | getIntervalMs()Only valid if the job is periodic. | 
| long | getLastRun()Returns the time the job did run the last time. | 
| (package private) JobRequest | getRequest() | 
| long | getScheduledAt()Returns the time when this job was scheduled. | 
| long | getStartMs()Only valid if the job isn't periodic. | 
| String | getTag() | 
| Bundle | getTransientExtras()Returns the transient extras you passed in when constructing this job with
  JobRequest.Builder.setTransientExtras(Bundle). | 
| int | hashCode() | 
| boolean | isExact() | 
| boolean | isPeriodic() | 
| boolean | isTransient()Returns whether this is a transient jobs. | 
| JobRequest.NetworkType | requiredNetworkType()Call  Job.isRequirementNetworkTypeMet()to check whether this requirement is fulfilled. | 
| boolean | requirementsEnforced() | 
| boolean | requiresBatteryNotLow() | 
| boolean | requiresCharging()Call  Job.isRequirementChargingMet()to check whether this requirement is fulfilled. | 
| boolean | requiresDeviceIdle()Call  Job.isRequirementDeviceIdleMet()to check whether this requirement is fulfilled. | 
| boolean | requiresStorageNotLow() | 
public int getId()
Job.JobRequest.getJobId()public String getTag()
Job which was passed in the constructor of the JobRequest.Builder.JobRequest.getTag()public boolean isPeriodic()
Job is periodic or not. If this Job is periodic, then
 you shouldn't return Job.Result.RESCHEDULE as result.JobRequest.isPeriodic()public boolean isExact()
true if this job was scheduled at an exact time by calling JobRequest.Builder.setExact(long).JobRequest.isExact()public long getStartMs()
JobRequest.getStartMs()public long getEndMs()
JobRequest.getEndMs()public long getIntervalMs()
JobRequest.getIntervalMs()public long getFlexMs()
JobRequest.getFlexMs()public long getScheduledAt()
public long getBackoffMs()
getBackoffPolicy()
 if the job fails multiple times.JobRequest.getBackoffMs()public JobRequest.BackoffPolicy getBackoffPolicy()
JobRequest.getBackoffPolicy()public boolean requiresCharging()
Job.isRequirementChargingMet() to check whether this requirement is fulfilled.true, then the job should only run if the device is charging.JobRequest.requiresCharging()public boolean requiresDeviceIdle()
Job.isRequirementDeviceIdleMet() to check whether this requirement is fulfilled.true, then job should only run if the device is idle.JobRequest.requiresDeviceIdle()public JobRequest.NetworkType requiredNetworkType()
Job.isRequirementNetworkTypeMet() to check whether this requirement is fulfilled.JobRequest.requiredNetworkType()public boolean requiresBatteryNotLow()
true, then the job should only run if the battery isn't low.public boolean requiresStorageNotLow()
true, then the job should only run if the battery isn't low.public boolean requirementsEnforced()
true, then all requirements are checked before the job runs. If one requirement
 isn't met, then the job is rescheduled right away.JobRequest.requirementsEnforced()public int getFailureCount()
Job was rescheduled or if a periodic
 Job wasn't successful.public long getLastRun()
public boolean isTransient()
@NonNull public Bundle getTransientExtras()
JobRequest.Builder.setTransientExtras(Bundle). WARNING: It's not guaranteed that a transient job
 will run at all, e.g. rebooting the device or force closing the app will cancel the
 job.
 null. If you did not set any extras this will be an empty bundle.@NonNull public PersistableBundleCompat getExtras()
Job. Never returns null.JobRequest getRequest()