Skip to content

Instantly share code, notes, and snippets.

@Marchuck
Created November 17, 2019 20:30
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 Marchuck/13505f3fe5e53539c40d71ec36497259 to your computer and use it in GitHub Desktop.
Save Marchuck/13505f3fe5e53539c40d71ec36497259 to your computer and use it in GitHub Desktop.
SomeFragment
class SomeFragment: Fragment(){
@Inject factory: AssistedViewModel.Factory
override fun onActivityCreated(savedInstanceState: Bundle?){
super.onActivityCreated(savedInstanceState)
val viewModel = factory.create(301)
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment