Closed Diy2210 closed 4 years ago
Hi, I need call ViewModel fun inside UnitItem class, how its work?
ViewModel class:
UnitItems, need call fun on button press:
Hi, I need call ViewModel fun inside UnitItem class, how its work?
ViewModel class:![Снимок экрана 2020-07-29 в 12 21 29](https://user-images.githubusercontent.com/9552501/88782437-415af100-d196-11ea-9f90-81fbae72d8a7.png)
UnitItems, need call fun on button press:![Снимок экрана 2020-07-29 в 12 21 55](https://user-images.githubusercontent.com/9552501/88782469-491a9580-d196-11ea-96c6-465cf1832ce5.png)