Created
November 21, 2019 17:17
-
-
Save RoRoche/01f27a5b9865a2df040f80a55eb8605c to your computer and use it in GitHub Desktop.
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
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