Skip to content

Instantly share code, notes, and snippets.

@ariefbayu
Created December 31, 2019 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ariefbayu/b640905fdfd6bd39396ade4681541a7d to your computer and use it in GitHub Desktop.
Save ariefbayu/b640905fdfd6bd39396ade4681541a7d to your computer and use it in GitHub Desktop.
OneTimeWorkRequest refreshWork = new OneTimeWorkRequest.Builder(ProcessingWorker.class).build();
WorkManager.getInstance(getApplicationContext()).enqueueUniqueWork(PUSH_LOCATION_WORK_TAG, ExistingWorkPolicy.KEEP, refreshWork);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment