FileDocCategorySizeDatePackage
JobSchedulerImpl.javaAPI DocAndroid 5.1 API1811Thu Mar 12 22:22:10 GMT 2015android.app

JobSchedulerImpl

public class JobSchedulerImpl extends android.app.job.JobScheduler
Concrete implementation of the JobScheduler interface
hide

Fields Summary
android.app.job.IJobScheduler
mBinder
Constructors Summary
JobSchedulerImpl(android.app.job.IJobScheduler binder)

        mBinder = binder;
    
Methods Summary
public voidcancel(int jobId)

        try {
            mBinder.cancel(jobId);
        } catch (RemoteException e) {}

    
public voidcancelAll()

        try {
            mBinder.cancelAll();
        } catch (RemoteException e) {}

    
public java.util.ListgetAllPendingJobs()

        try {
            return mBinder.getAllPendingJobs();
        } catch (RemoteException e) {
            return null;
        }
    
public intschedule(android.app.job.JobInfo job)

        try {
            return mBinder.schedule(job);
        } catch (RemoteException e) {
            return JobScheduler.RESULT_FAILURE;
        }