Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Nimrodda/16e0c570cabbf7c5c8af33e62ef7c335 to your computer and use it in GitHub Desktop.
Save Nimrodda/16e0c570cabbf7c5c8af33e62ef7c335 to your computer and use it in GitHub Desktop.
@Module
abstract class DetailModule {
@Binds
@IntoMap
@ViewModelKey(DetailViewModel::class)
abstract fun bindFactory(DetailViewModel viewModel): ViewModelAssistedFactory<out ViewModel>
}
@alashow
Copy link

alashow commented Mar 30, 2019

Is that the correct parameter for this function? You can't assign DetailViewModel to ViewModelAssistedFactory<out ViewModel>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment