WorkManager is a library used to enqueue work that is guaranteed to execute after its constraints are met.
Hence, After going though the Constraints class I haven't found any function to add time constraint on the work. For like example, I want to start a work to perform at 8:00am (The work can be any of two types OneTimeWorkRequest or PeriodicWorkRequest) in the morning. How can I add constraint to schedule this work with WorkManager.
from Schedule a work on a specific time with WorkManager
No comments:
Post a Comment