DelegatingWorker
A worker that delegates sync to another CoroutineWorker constructed with a HiltWorkerFactory.
This allows for creating and using CoroutineWorker instances with extended arguments without having to provide a custom WorkManager configuration that the app module needs to utilize.
In other words, it allows for custom workers in a library module without having to own configuration of the WorkManager singleton.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val foregroundInfoAsync: com/google/common/util/concurrent/ListenableFuture<androidx/work/ForegroundInfo>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Delegates the work to the delegate worker
Link copied to clipboard
Retrieves the foreground info from the delegate worker
Link copied to clipboard
override fun getForegroundInfoAsync(): com/google/common/util/concurrent/ListenableFuture<androidx/work/ForegroundInfo>
Link copied to clipboard
Link copied to clipboard
fun setForegroundAsync(foregroundInfo: @NonNull ForegroundInfo): @EnhancedNullability @R|org/jspecify/annotations/NonNull|() com/google/common/util/concurrent/ListenableFuture
Link copied to clipboard
Link copied to clipboard
open fun setProgressAsync(data: @NonNull Data): @EnhancedNullability @R|org/jspecify/annotations/NonNull|() com/google/common/util/concurrent/ListenableFuture
Link copied to clipboard
Link copied to clipboard