Aracılığıyla paylaş


JobScheduler.ResultFailure Field

Definition

Returned from #schedule(JobInfo) if a job wasn't scheduled successfully.

[Android.Runtime.Register("RESULT_FAILURE")]
public const int ResultFailure = 0;
[<Android.Runtime.Register("RESULT_FAILURE")>]
val mutable ResultFailure : int

Field Value

Value = 0
Attributes

Remarks

Returned from #schedule(JobInfo) if a job wasn't scheduled successfully. Scheduling can fail for a variety of reasons, including, but not limited to: <ul> <li>an invalid parameter was supplied (eg. the run-time for your job is too short, or the system can't resolve the requisite JobService in your package)</li> <li>the app has too many jobs scheduled</li> <li>the app has tried to schedule too many jobs in a short amount of time</li> </ul> Attempting to schedule the job again immediately after receiving this result will not guarantee a successful schedule.

Java documentation for android.app.job.JobScheduler.RESULT_FAILURE.

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.

Applies to