Last active
May 14, 2021 19:24
-
-
Save magdamiu/698371e4037e09501ae66395d548ab5f to your computer and use it in GitHub Desktop.
Unique work sequence
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
WorkManager.getInstance(context) | |
.enqueueUniquePeriodicWork( | |
Constants.UNIQUE_NAME, | |
ExistingPeriodicWorkPolicy.KEEP, | |
syncPeriodically | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment