Intent
Marker interface for UI actions coming from the view layer.
Intents represent user actions such as button clicks, text input changes, or lifecycle events like OnStart. They are the only way to trigger state changes or side effects in an MVI architecture.
Example usage:
sealed interface HomeIntent : Intent {
data object LoadData : HomeIntent
data class Search(val query: String) : HomeIntent
data class ToggleFavorite(val itemId: String) : HomeIntent
}Content copied to clipboard