ClickOnArticle

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

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.