Example usage for android.app.job JobScheduler cancelAll

List of usage examples for android.app.job JobScheduler cancelAll

Introduction

In this page you can find the example usage for android.app.job JobScheduler cancelAll.

Prototype

public abstract void cancelAll();

Source Link

Document

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

Usage

From source file:com.example.android.sampletvinput.syncservice.SyncUtils.java

public static void cancelAll(Context context) {
    JobScheduler jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
    jobScheduler.cancelAll();
}

From source file:nuclei.task.TaskScheduler.java

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private static void cancelAllL(Context context) {
    JobScheduler jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
    jobScheduler.cancelAll();
}

From source file:com.google.android.media.tv.companionlibrary.EpgSyncJobService.java

/**
 * Cancels all pending jobs./*  w  w  w. j a  v  a2s . com*/
 * @param context Application's context.
 */
public static void cancelAllSyncRequests(Context context) {
    JobScheduler jobScheduler = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);
    jobScheduler.cancelAll();
}