Kotlin Mastery
Open main menu
About
Roadmap
Login
Loading...
View Model
1
What is the role of a ViewModel in an Android app?
2
Can you explain how a view model is scoped?
3
Can you scope a view model to a composable?
4
Can you refer a View or Context in ViewModel?
5
Say you are calling a repository method inside a coroutine in ViewModel. How would you do it?
6
How would you clear resources when its ViewModelStoreOwner is destroyed?
7
Which of the following are true about View Models?
8
Can you explain why viewModelA is not equal to viewModelF?
9
Can you access a ViewModel scoped to its parent fragment or Activity?
10
Can you provide few the ViewModelScopeOwner classes you know of?
11
When would you need SavedStateHandle in ViewModel?
12
What do you normally save in saved instance state?