reader
The reading experience: an issue rendered page by page, or an article rendered as text.
The module is one interface — Reader — reached from the CGS.reader extension. Each of its three entry points launches a full-screen Activity of its own; you hand it what to open and it takes over from there.
val item = CGS.download().issue(issueId)
// … once item.state is Downloaded
CGS.reader().open(activity, item, page = 12)Content copied to clipboard
| open | A downloaded issue, at a given page. |
| openArticle | One article, without downloading its issue. |
| openArticles | A list of articles, swipeable end to end. |
Reading an issue means downloading it first — open needs a Download.Item whose state has reached Downloaded. Articles have no such requirement: they are fetched on the spot.
Packages
Link copied to clipboard
Reader and the CGS.reader accessor that returns it.