DetectUpdateTriggerWorker

@IviExperimental(reasons = [])
class DetectUpdateTriggerWorker(context: Context, workerParameters: WorkerParameters) : CoroutineWorker

Worker to invoke UpdaterService.detectUpdate of a service identified by an IviServiceId.

The IviServiceId is obtained from the InputParameters.updaterServiceId. The UpdaterService.detectUpdate function is invoked with an ID obtained from InputParameters.detectUpdateHandlerId. See InputParameters.detectUpdateHandlerId for details.

Use Builder to build this Worker.

Constructors

Link copied to clipboard
constructor(context: Context, workerParameters: WorkerParameters)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class InputParameters(val updaterServiceId: IviServiceId, val detectUpdateHandlerId: DetectUpdateHandlerId)

The input parameters of the DetectUpdateTriggerWorker.

Inherited properties

Link copied to clipboard
open val coroutineContext: CoroutineDispatcher

Functions

Link copied to clipboard
open suspend override fun doWork(): ListenableWorker.Result

Inherited functions

Link copied to clipboard
open suspend fun getForegroundInfo(): ForegroundInfo
Link copied to clipboard
override fun getForegroundInfoAsync(): ListenableFuture<ForegroundInfo>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@RequiresApi(value = 31)
fun getStopReason(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
override fun startWork(): ListenableFuture<ListenableWorker.Result>
Link copied to clipboard