Created
August 7, 2022 13:08
-
-
Save motorro/99e2b8543e362ad62c61be3a57c0d248 to your computer and use it in GitHub Desktop.
Base state with context
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
abstract class LoginState( | |
context: LoginContext | |
): CoroutineState<LoginGesture, LoginUiState>(), LoginContext by context { | |
override fun doProcess(gesture: LoginGesture) { | |
Timber.w("Unsupported gesture: %s", gesture) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment