JobScheduler.CancelAll Method

Definition

Cancel all jobs that have been scheduled in the current namespace by the calling application.

[Android.Runtime.Register("cancelAll", "()V", "GetCancelAllHandler")]
public abstract void CancelAll ();
[<Android.Runtime.Register("cancelAll", "()V", "GetCancelAllHandler")>]
abstract member CancelAll : unit -> unit
Attributes

Remarks

Cancel all jobs that have been scheduled in the current namespace by the calling application.

Starting with Android version android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE, this will only cancel within the current namespace. If a namespace hasn't been explicitly set with #forNamespace(String), then this will cancel jobs in the default namespace. To cancel all jobs scheduled by the application, use #cancelInAllNamespaces() instead.

Java documentation for android.app.job.JobScheduler.cancelAll().

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