S
S
Shadrindmitry2019-08-26 21:49:45
Android
Shadrindmitry, 2019-08-26 21:49:45

How to properly receive notifications in activity from viewmodel?

The Viewmodel sends the data to the server to be stored. We need to get a notification from the viewmodel in the activity that the data has been loaded.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Shadrindmitry, 2019-08-26
@Shadrindmitry

https://medium.com/androiddevelopers/livedata-with...

T
tiroman, 2019-08-26
@tiroman

Use LiveData, look at samples from Google, everything is there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question