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
12 months agoRex
12 months agoEladia
12 months agoNa
12 months agoAnnice
11 months agoAnnice
11 months agoAnnice
12 months agoBobbie
12 months agoLai
10 months agoDesiree
11 months agoMicheline
11 months agoShannan
11 months agoDorothy
11 months agoBrendan
11 months agoCeola
1 years agoRex
1 years agoKimi
1 years agoFrancine
12 months agoJaclyn
1 years agoFrancine
1 years agoJaclyn
1 years agoFrancine
1 years ago