Skip to content

Instantly share code, notes, and snippets.

@mlykotom
Last active February 7, 2021 20:43
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 mlykotom/71e1be48562653b6ed1ba4eaca4a35ce to your computer and use it in GitHub Desktop.
Save mlykotom/71e1be48562653b6ed1ba4eaca4a35ce to your computer and use it in GitHub Desktop.
Connecting the dots : BuilderModule
@Module
abstract class BuilderModule {
@Binds
@IntoMap
@ViewModelKey(SomeViewModel::class)
abstract fun bindVMFactory(f: SomeViewModel.Factory): AssistedSavedStateViewModelFactory<out ViewModel>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment