In our TeaViewModel class, that extends ViewModel, we have such prorerty:
val tea: LiveData
An observer in our Activity (type of mViewModel variable in example is TeaViewModel) is set in this way:
mViewModel!!.tea.observe(this, Observer { tea: Tea? -> displayTea(tea) })
What will be a correct displayTea method definition?
Evangelina
11 months agoRex
11 months agoEladia
11 months agoNa
11 months agoAnnice
10 months agoAnnice
10 months agoAnnice
11 months agoBobbie
11 months agoLai
9 months agoDesiree
10 months agoMicheline
10 months agoShannan
10 months agoDorothy
10 months agoBrendan
10 months agoCeola
11 months agoRex
12 months agoKimi
12 months agoFrancine
11 months agoJaclyn
11 months agoFrancine
11 months agoJaclyn
11 months agoFrancine
11 months ago