Last active
April 1, 2019 03:46
-
-
Save hansenji/dd30e6fbf03edf190eea55f566e827da to your computer and use it in GitHub Desktop.
savedstate_boilerplate.kt
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
@AssistedInject.Factory | |
interface Factory : ViewModelAssistedFactory<MyViewModel> | |
@Module | |
abstract class DetailModule { | |
@Binds | |
@IntoMap | |
@ViewModelKey(MyViewModel.class) | |
abstract fun bindFactory(factory: MyViewModel.Factory): ViewModelAssistedFactory | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment