Android.App.Job.JobService Class

See Also: JobService Members


[Android.Runtime.Register("android/app/job/JobService", DoNotGenerateAcw=true)]
public abstract class JobService : Android.App.Service


Entry point for the callback from the Android.App.Job.JobScheduler.

This is the base class that handles asynchronous requests that were previously scheduled. You are responsible for overriding JobService.OnStartJob(JobParameters), which is where you will implement your job logic.

This service executes each incoming job on a Android.OS.Handler running on your application's main thread. This means that you must offload your execution logic to another thread/handler/Android.OS.AsyncTask`3 of your choosing. Not doing so will result in blocking any future callbacks from the JobManager - specifically JobService.OnStopJob(JobParameters), which is meant to inform you that the scheduling requirements are no longer being met.

[Android Documentation]


Namespace: Android.App.Job
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: