Skip to content

Instantly share code, notes, and snippets.

@parahall
Created May 10, 2018 17:49
Show Gist options
  • Save parahall/eaf84389c49b66b0a0c92ca44254fc94 to your computer and use it in GitHub Desktop.
Save parahall/eaf84389c49b66b0a0c92ca44254fc94 to your computer and use it in GitHub Desktop.
PeriodicWorkRequest locationWork = new PeriodicWorkRequest.Builder(
LocationWork.class, 15, TimeUnit.MINUTES).addTag(LocationWork.TAG).build();
WorkManager.getInstance().enqueue(locationWork);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment