Last active
November 5, 2018 19:43
-
-
Save hadilq/c5b3cc8aa0e564c3447718ee34674714 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
class ExampleViewModel @Inject constructor( | |
... | |
) : BaseViewModel() { | |
init { | |
actionStream.filterTo(ClickedAction::class.java) | |
.subscribe(::clicked).track() | |
} | |
private fun clicked(clickedAction: clickedAction) { | |
.... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment