Created
March 25, 2020 13:57
-
-
Save RohitSurwase/904a2f23071ab5c9199ffc54c47c7a6c to your computer and use it in GitHub Desktop.
ViewEvent example
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
sealed class MainViewEvent { | |
data class NewsItemClicked(val newsItem: NewsItem) : MainViewEvent() | |
object FabClicked : MainViewEvent() | |
object OnSwipeRefresh : MainViewEvent() | |
object FetchNews : MainViewEvent() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment