Skip to content

Instantly share code, notes, and snippets.

@tfcporciuncula
Created February 29, 2024 12:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfcporciuncula/0466f51d63a5ecb1456fa724f0699c3e to your computer and use it in GitHub Desktop.
Save tfcporciuncula/0466f51d63a5ecb1456fa724f0699c3e to your computer and use it in GitHub Desktop.
val viewModel = hiltViewModel<MyViewModel, MyViewModel.Factory>(
creationCallback = { factory -> factory.create(runtimeArg = "abc") }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment