ProductUploaderWorker

class ProductUploaderWorker @AssistedInject constructor(@Assisted context: Context, @Assisted workerParams: WorkerParameters) : CoroutineWorker

Constructors

Link copied to clipboard
@AssistedInject
fun ProductUploaderWorker(@Assisted context: Context, @Assisted workerParams: WorkerParameters)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend override fun doWork(): ListenableWorker.Result
Link copied to clipboard
fun getApplicationContext(): Context
Link copied to clipboard
open fun getBackgroundExecutor(): Executor
Link copied to clipboard
open suspend fun getForegroundInfo(): ForegroundInfo
Link copied to clipboard
override fun getForegroundInfoAsync(): ListenableFuture<ForegroundInfo>
Link copied to clipboard
fun getId(): UUID
Link copied to clipboard
fun getInputData(): Data
Link copied to clipboard
@RequiresApi(value = 28)
fun getNetwork(): Network?
Link copied to clipboard
@IntRange(from = 0)
fun getRunAttemptCount(): Int
Link copied to clipboard
fun getTags(): MutableSet<String>
Link copied to clipboard
open fun getTaskExecutor(): TaskExecutor
Link copied to clipboard
@RequiresApi(value = 24)
fun getTriggeredContentAuthorities(): MutableList<String>
Link copied to clipboard
@RequiresApi(value = 24)
fun getTriggeredContentUris(): MutableList<Uri>
Link copied to clipboard
open fun getWorkerFactory(): WorkerFactory
Link copied to clipboard
open fun isRunInForeground(): Boolean
Link copied to clipboard
fun isStopped(): Boolean
Link copied to clipboard
fun isUsed(): Boolean
Link copied to clipboard
override fun onStopped()
Link copied to clipboard
suspend fun setForeground(foregroundInfo: ForegroundInfo)
Link copied to clipboard
fun setForegroundAsync(@NonNull foregroundInfo: ForegroundInfo): ListenableFuture<Void>
Link copied to clipboard
suspend fun setProgress(data: Data)
Link copied to clipboard
open fun setProgressAsync(@NonNull data: Data): ListenableFuture<Void>
Link copied to clipboard
open fun setRunInForeground(runInForeground: Boolean)
Link copied to clipboard
fun setUsed()
Link copied to clipboard
override fun startWork(): ListenableFuture<ListenableWorker.Result>
Link copied to clipboard
fun stop()

Properties

Link copied to clipboard
open val coroutineContext: CoroutineDispatcher
Link copied to clipboard
@Inject
lateinit var offlineProductRepository: OfflineProductRepository