Created
December 21, 2019 16:19
-
-
Save gastsail/5803c076f9d31ac370bd784f79ddbb0f 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
class EventsVMFactory(private val useCase: IEvents):ViewModelProvider.Factory { | |
override fun <T : ViewModel?> create(modelClass: Class<T>): T { | |
return modelClass.getConstructor(IEvents::class.java).newInstance(useCase) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment