How can I check if the Worker
meets Constraints
when is enqueued?
For example, if I need to download data from the internet and establish that the Worker
only runs if there is an internet connection. How can I check at that moment if the Worker
meet the Constraints
to alert the user?
Or if I'm going to perform a task that can consume a lot of battery power and I want to show a Dialog
saying "Start charging your Smartphone's battery to start"
Is there a way to do it from the WorkManager
or do I have to do it from an external method?