how to show a dialog in mvvm android

Viewed 2769

showing a dialog, start activity in MVVM is a view responsibility.
in view, you have an instance of VM but in VM you don't have the instance of the view. so the solution is using live data and observes in view, right?
but how about time I don't want to use live data? how can I show a dialog when I don't have access to view?

1 Answers
Related