📱UiState
Example of an UiState for a Dashboard
Note that DashboardUiState
implements the Actionable
interface for one-time actions sent from the ViewModel to the Fragment, like showing a Dialog or a Snackbar, or navigating to another Screen.
Here's how a child of MVIViewModel
would send an UiAction
to the Screen via its UiState
:
Last updated