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

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
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()

Inheritors

Link copied to clipboard

Sources

Link copied to clipboard