Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fun observeMyWorkPlease() {
WorkManager.getInstance().getStatusById(hardWorkId).observe(lifecycleOwner, workStatus -> {
if (null != workStatus && workStatus.state.isFinished()) {
// let's rock!
}
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment