Created
March 19, 2019 11:34
-
-
Save Nimrodda/16e0c570cabbf7c5c8af33e62ef7c335 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Module | |
abstract class DetailModule { | |
@Binds | |
@IntoMap | |
@ViewModelKey(DetailViewModel::class) | |
abstract fun bindFactory(DetailViewModel viewModel): ViewModelAssistedFactory<out ViewModel> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is that the correct parameter for this function? You can't assign
DetailViewModel
toViewModelAssistedFactory<out ViewModel>