Created
February 29, 2024 12:33
-
-
Save tfcporciuncula/71ef171d9d18a0fd8dc9f84e6912ad76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private val viewModel by viewModels<MyViewModel>( | |
extrasProducer = { | |
defaultViewModelCreationExtras.withCreationCallback<MyViewModel.Factory> { factory -> | |
factory.create(runtimeArg = "abc") | |
} | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment