Skip to content

Instantly share code, notes, and snippets.

@Skyyo
Created August 22, 2021 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Skyyo/e80a5a6881228686b77e480af7627f1a to your computer and use it in GitHub Desktop.
Save Skyyo/e80a5a6881228686b77e480af7627f1a to your computer and use it in GitHub Desktop.
sealed class ScreenEvent {
class ShowToast(val messageId: Int) : ScreenEvent()
class UpdateKeyboard(val show: Boolean) : ScreenEvent()
class MoveFocus(val direction: FocusDirection = FocusDirection.Down) : ScreenEvent()
class RequestFocus(val textFieldKey: FocusedTextFieldKey) : ScreenEvent()
object ClearFocus : ScreenEvent()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment