Last active
January 30, 2019 20:54
-
-
Save ceruleanotter/efc99abb6f9868454ed73bf97b870526 to your computer and use it in GitHub Desktop.
WorkManager Basics: Multiple constraints example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val constraints = Constraints.Builder() | |
.setRequiresBatteryNotLow(true) | |
.setRequiredNetworkType(NetworkType.CONNECTED) | |
.setRequiresCharging(true) | |
.setRequiresStorageNotLow(true) | |
.setRequiresDeviceIdle(true) | |
.build() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment