public static JobScheduler getInstance(Context context) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            return JobSchedulerLollipopDelegate.getLollipopInstance(context);
        } else {
            return JobSchedulerCompat.getCompatInstance(context);
        }
    }
public static JobScheduler getInstance(Context context) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            return JobSchedulerLollipopDelegate.getLollipopInstance(context);
        } else {
            return JobSchedulerCompat.getCompatInstance(context);
        }
    }
public static JobScheduler getInstance ( Context context ) { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . LOLLIPOP ) { return JobSchedulerLollipopDelegate . getLollipopInstance ( context ) ; } else { return JobSchedulerCompat . getCompatInstance ( context ) ; } }
Get an instance of a the {@link JobScheduler}, which will delegate to the android one in api
21+ and use a backported version on older apis.

@param context the context
@return a JobScheduler instance
Get an instance of a the { @link JobScheduler } which will delegate to the android one in api 21 + and use a backported version on older apis .