ArticleUiState
constructor(title: String, preview: String? = null, theme: String? = null, imageUrl: String? = null, isBookmarked: Boolean = false, offsetReleaseDate: OffsetDateTime? = null, readingTime: Double? = null)
Parameters
title
the headline. The only required field.
preview
the teaser shown under the title, if there is one.
theme
the category label shown above the title, if there is one.
imageUrl
the cover image, if there is one. Loaded remotely; a placeholder holds its place until it arrives.
isBookmarked
whether the bookmark control shows as set. You own this: update it in response to the component's bookmark callback.
offsetReleaseDate
when the article came out. Rendered as a relative age ("2 h ago"); omitted when null.
readingTime
the estimated read, in minutes. Omitted when null.