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