Created
September 30, 2018 07:48
-
-
Save NezSpencer/360dbeee6005a99678ff4bb7a9d6ff58 to your computer and use it in GitHub Desktop.
query lifecycle state
This file contains hidden or 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
@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