Skip to content

Instantly share code, notes, and snippets.

@CDRussell
Created November 30, 2017 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CDRussell/85a7bf082650f91849faa8f760e09f65 to your computer and use it in GitHub Desktop.
Save CDRussell/85a7bf082650f91849faa8f760e09f65 to your computer and use it in GitHub Desktop.
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