JobParameters.StopReasonTimeoutAbandoned Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This constant will be removed in the future version. Use Android.App.Job.StopReason enum directly instead of this field.
The job used up its maximum execution time and timed out.
[Android.Runtime.Register("STOP_REASON_TIMEOUT_ABANDONED", ApiSince=36)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.Job.StopReason enum directly instead of this field.", true)]
public const Android.App.Job.StopReason StopReasonTimeoutAbandoned = 16;
[<Android.Runtime.Register("STOP_REASON_TIMEOUT_ABANDONED", ApiSince=36)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.Job.StopReason enum directly instead of this field.", true)>]
val mutable StopReasonTimeoutAbandoned : Android.App.Job.StopReason
Field Value
Value = 16Implements
- Attributes
Remarks
The job used up its maximum execution time and timed out. The system also detected that the app can no longer call JobService#jobFinished(JobParameters, boolean)
for this job, likely because the strong reference to the job handle (JobParameters
) passed to it via JobService#onStartJob(JobParameters)
was lost. This can occur even if the app called JobScheduler#cancel(int)
, JobScheduler#cancelAll()
, or JobScheduler#cancelInAllNamespaces()
to stop an active job while losing strong references to the job handle. In this case, the job is not necessarily abandoned. However, the system cannot distinguish such cases from truly abandoned jobs.
It is recommended that you use JobService#jobFinished(JobParameters, boolean)
or return false from JobService#onStartJob(JobParameters)
to stop an active job. This will prevent the occurrence of this stop reason and the need to handle it. The primary use case for this stop reason is to report a probable case of a job being abandoned.
Java documentation for android.app.job.JobParameters.STOP_REASON_TIMEOUT_ABANDONED
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.