Play driver. FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(context)); Job myJob = dispatcher.newJobBuilder() .setService(MyJobService.class) // the JobService that will be called .setTag("my-unique-tag") // uniquely identifies the job .build(); dispatcher.mustSchedule(myJob);
Data.Builder(); Data data = builder.putString(“path”, “file://some_path”); OneTimeWorkRequest uploadRequest = new OneTimeWorkRequest.Builder(UploadWorker.class) .setInputData(data) .build();