Categories
Mastering Development

Can I change Input Data every start doWork() in PeriodicWorkRequestBuilder

Can I setInputData([someDataChangeEveryWorkerStart])

val uploadWorkRequest = PeriodicWorkRequestBuilder<UploadWorker>((1, TimeUnit.HOURS))
    .setInputData(imageData)
    .build()

which imageData change every 1 hour

Leave a Reply

Your email address will not be published. Required fields are marked *