Created
May 27, 2020 04:52
-
-
Save cloudbank/b173ff1d43c4fdefef02f9a7f483e928 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