Skip to content

Instantly share code, notes, and snippets.

@NezSpencer
Created September 30, 2018 07:47
Show Gist options
  • Save NezSpencer/599e12c30cdabd799eb5388b0968a9d3 to your computer and use it in GitHub Desktop.
Save NezSpencer/599e12c30cdabd799eb5388b0968a9d3 to your computer and use it in GitHub Desktop.
query lifecycle state
@Override
fun onSuccess(){
if(lifecycle.currentState.isAtLeast(Lifecycle.State.STARTED)) {
//perform action here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment