urbanairship-core/src/main/java/com/urbanairship/job/AirshipService.java
public static Intent createIntent(Context context, JobInfo jobInfo, Bundle rescheduleExtras) {
        Intent intent = new Intent(context, AirshipService.class)
                .setAction(AirshipService.ACTION_RUN_JOB);

        if (jobInfo != null) {
            intent.putExtra(AirshipService.EXTRA_JOB_INFO_BUNDLE, jobInfo.toBundle());
        }

        if (rescheduleExtras != null) {
            intent.putExtra(AirshipService.EXTRA_RESCHEDULE_EXTRAS, rescheduleExtras);
        }

        return intent;
    }
/**
     * Creates a service intent for the {@link JobInfo}.
     *
     * @param context The application context.
     * @param jobInfo The {@link JobInfo} to run.
     * @param rescheduleExtras Extras to pass to {@link JobDispatcher#reschedule(JobInfo, Bundle)} if the job needs to be retried.
     * @return A service intent.
     */
Creates a service intent for the  JobInfo.
@param context The application context.
@param jobInfo The  JobInfo to run.
@param rescheduleExtras Extras to pass to  JobDispatcher#reschedule(JobInfo, Bundle) if the job needs to be retried.
@return A service intent.
Creates a service intent for the JobInfo . @param context The application context . @param jobInfo The JobInfo to run . @param rescheduleExtras Extras to pass to JobDispatcher#reschedule ( JobInfo Bundle ) if the job needs to be retried . @return A service intent .
public static Intent createIntent(Context context, JobInfo jobInfo, Bundle rescheduleExtras) {
        Intent intent = new Intent(context, AirshipService.class)
                .setAction(AirshipService.ACTION_RUN_JOB);
        if (jobInfo != null) {
            intent.putExtra(AirshipService.EXTRA_JOB_INFO_BUNDLE, jobInfo.toBundle());
        }
        if (rescheduleExtras != null) {
            intent.putExtra(AirshipService.EXTRA_RESCHEDULE_EXTRAS, rescheduleExtras);
        }
        return intent;
    }
public static Intent createIntent ( Context context , JobInfo jobInfo , Bundle rescheduleExtras ) { Intent intent = new Intent ( context , AirshipService . class ) . setAction ( AirshipService . ACTION_RUN_JOB ) ; if ( jobInfo != null ) { intent . putExtra ( AirshipService . EXTRA_JOB_INFO_BUNDLE , jobInfo . toBundle ( ) ) ; } if ( rescheduleExtras != null ) { intent . putExtra ( AirshipService . EXTRA_RESCHEDULE_EXTRAS , rescheduleExtras ) ; } return intent ; }
Creates a service intent for the {@link JobInfo}.
Creates a service intent for the { @link JobInfo } .