KronSchedulerWork

abstract class KronSchedulerWork(context: Context, workerParams: WorkerParameters) : CoroutineWorker

Use this class as a super class in case you wish to implement krontab-based enqueuing of works

See also

Constructors

KronSchedulerWork
Link copied to clipboard
fun KronSchedulerWork(context: Context, workerParams: WorkerParameters)

Functions

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

Inheritors

KrontabTemplateSchedulerWork
Link copied to clipboard

Sources

android source
Link copied to clipboard