KronSchedulerWork

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

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

See also

Constructors

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

Functions

Link copied to clipboard
open suspend override fun doWork(): ListenableWorker.Result
Link copied to clipboard
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
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

Inheritors

Link copied to clipboard