Created
May 27, 2020 04:52
-
-
Save cloudbank/0d60c02f46966e8343bbb974ff8960ea to your computer and use it in GitHub Desktop.
This file contains 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 ViewModelModule { | |
@Binds | |
internal abstract fun bindViewModelFactory(factory: ViewModelFactory): ViewModelProvider.Factory | |
@Binds | |
@IntoMap | |
@ViewModelKey(LoginViewModel::class) | |
internal abstract fun loginViewModel(viewModel: LoginViewModel): ViewModel | |
//multibinding | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment