Created
December 3, 2023 02:46
-
-
Save 0xZhangKe/7d4c071ba7b7aa4be82b161410b395db to your computer and use it in GitHub Desktop.
usecase usage for viewmodel
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
class LoginViewModel @Inject constructor( | |
private val doSomething: DoSomethingUseCase, | |
): ViewModel(){ | |
fun onLoginClick(){ | |
doSomething() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment