Content

data class Content<T>(val data: T, val fetchedAt: Instant? = null, val freshness: FreshnessBand = FreshnessBand.Initial, val isRefreshing: Boolean = false) : ScreenState<T>

Data to show, with freshness metadata. isRefreshing drives a background-refresh indicator.

Constructors

Link copied to clipboard
constructor(data: T, fetchedAt: Instant? = null, freshness: FreshnessBand = FreshnessBand.Initial, isRefreshing: Boolean = false)

Properties

Link copied to clipboard
val data: T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard