Skip to content

Instantly share code, notes, and snippets.

@SabagRonen
Created July 7, 2018 14:46
Show Gist options
  • Save SabagRonen/3643553c18b9f88f210d8bbe384aa2ac to your computer and use it in GitHub Desktop.
Save SabagRonen/3643553c18b9f88f210d8bbe384aa2ac to your computer and use it in GitHub Desktop.
Android Jetpack Adoption At Gett post - new way to write contract
sealed class ProgressBarState
object ProgressBarShowState : ProgressBarState()
object ProgressBarHideState : ProgressBarState()
interface SomeScreenViewObservers {
fun observeProgressBarState(lifecycle: Lifecycle, observer: (ProgressBarState) -> Unit)
}
interface IPresenter {
fun startSomethingButtonClicked()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment