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