Kotlin Mastery
Open main menu
Home
About
Daily Quiz
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
Can you explain why viewModelA is not equal to viewModelF?
8
Can you access a ViewModel scoped to its parent fragment or Activity?
9
Can you provide few the ViewModelScopeOwner classes you know of?
10
When would you need SavedStateHandle in ViewModel?
11
What do you normally save in saved instance state?