Running Background Tasks in Android with WorkManager: Part 2
Too Long; Didn't Read
WorkManager allows us to set the constraint for launching a task, for example, whether the Internet is on the device. When you pass such a task to WorkManager.enqueue, it will check that there is an internet connection.