Relative Content

Tag Archive for androiddependency-injectionwidgetdagger-hilt

How to use hiltviewmodel in compose appoverlay screen

I have implemented the Appoverlay screen in Compose. I can show the screen top-up of other applications or mobile home screens.
Using the Android lifecycle, state registerOwenr(SavedStateRegistryOwner, ViewModelStoreOwner, HasDefaultViewModelProviderFactory) can use the view model without hilt dependency injection.