Skip to content

Instantly share code, notes, and snippets.

@RohitSurwase
Created March 25, 2020 13:57
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 RohitSurwase/904a2f23071ab5c9199ffc54c47c7a6c to your computer and use it in GitHub Desktop.
Save RohitSurwase/904a2f23071ab5c9199ffc54c47c7a6c to your computer and use it in GitHub Desktop.
ViewEvent example
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