ClickOnArticle

data class ClickOnArticle(val article: ArticleShort, val articles: List<ArticleShort>, val index: Int, val context: Map<String, Any> = emptyMap()) : ArticleListEvent

An article was tapped. Open it in the reader.

Parameters

article

the article that was tapped. Always articles[index], kept for a host that only opens the one.

articles

the whole list the tap happened in. Pass its ids with index to Reader.open so the reader can swipe from one article to the next.

index

where article sits in articles.

context

extra key-value data about the interaction, for your own analytics. Empty today.

Constructors

Link copied to clipboard
constructor(article: ArticleShort, articles: List<ArticleShort>, index: Int, context: Map<String, Any> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val index: Int