Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Nimrodda/16e0c570cabbf7c5c8af33e62ef7c335 to your computer and use it in GitHub Desktop.

Select an option

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

alashow commented Mar 30, 2019

Copy link
Copy Markdown

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