Skip to content

Instantly share code, notes, and snippets.

@RoRoche
Created November 21, 2019 17:17
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 RoRoche/01f27a5b9865a2df040f80a55eb8605c to your computer and use it in GitHub Desktop.
Save RoRoche/01f27a5b9865a2df040f80a55eb8605c to your computer and use it in GitHub Desktop.
GetReposManagedRestRequest(
workManager = workManager,
baseUrl = "https://api.github.com/",
user = "RoRoche"
).liveData().observe(
lifecycleOwner,
Observer { workInfo ->
if (workInfo != null) {
// check with workInfo.state and deal with it
}
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment