Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.