Created
November 30, 2017 07:43
-
-
Save CDRussell/85a7bf082650f91849faa8f760e09f65 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
override fun progressChanged(newProgress: Int) { | |
viewState.value = currentViewState().copy(progress = newProgress) | |
} | |
override fun loadingStarted() { | |
viewState.value = currentViewState().copy(isLoading = true) | |
} | |
override fun loadingFinished() { | |
viewState.value = currentViewState().copy(isLoading = false) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment