Skip to content

Instantly share code, notes, and snippets.

@mitchtabian
Created September 3, 2019 23:29
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 mitchtabian/d8ca5047a985d52093b4b26a96d35264 to your computer and use it in GitHub Desktop.
Save mitchtabian/d8ca5047a985d52093b4b26a96d35264 to your computer and use it in GitHub Desktop.
return object: LiveData<MainViewState>(){
override fun onActive() {
super.onActive()
val user = User(
email = "mitch@tabian.ca",
username = "mitch",
image = "https://cdn.open-api.xyz/open-api-static/static-random-images/logo_1080_1080.png"
)
value = MainViewState(
user = user
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment