schedule

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.

Author

Arnau Mora

Since

20210824

Parameters

context

The Context that is scheduling the worker.