UiState

abstract class UiState<out T>

Contract for user interface state which UI components can use to interact with state

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract val loadState: T

Network request status to show to the user this value is importantly only when refresh is requested

Link copied to clipboard
abstract val refresh: suspend () -> Unit

Refreshes & invalidates underlying data source fetches it from scratch.

Link copied to clipboard
abstract val retry: suspend () -> Unit

Retries any failed requests.