Skip to main content

All Questions

1 vote
2 answers
1k views

Automatic Argument Storage in SavedStateHandle by Navigation Component

I'm using the Navigation component in my Jetpack Compose project and have a question about how argument values are accessed in SavedStateHandle of ViewModels. When I define a route with arguments in ...
Android Developer's user avatar
6 votes
1 answer
5k views

How to get view model with hilt outside activity in jetpack compose

So I have a kotlin file named "ListScreen" (it's not a class! just a .kt file with composable functions) and I'm handling transactions with compose navigation graph system. Right now I'm ...
Alireza F's user avatar