Companion

object Companion

Functions

Link copied to clipboard
Link copied to clipboard

Cancels all ongoing BlockStatusWorkers.

Link copied to clipboard
suspend fun info(context: Context): WorkInfo?

Fetches the work info for the BlockStatusWorker.

Link copied to clipboard
suspend fun isScheduled(context: Context): Boolean

Checks if the worker is scheduled.

Link copied to clipboard
fun schedule(context: Context)

Schedules the worker to run. Note that the worker should not be scheduled more than once, for checking whether or not to schedule the job, you can use isScheduled. schedule should only be called if isScheduled is false, otherwise the user's device may be overworking.

Link copied to clipboard

Checks if the worker is scheduled correctly with the latest update.

Properties

Link copied to clipboard

Serves as the error work result for showing how much failures there were.

Link copied to clipboard

Serves as the error work result for showing how much successes there were.