Reader
interface Reader
The reading experience: an issue rendered page by page, or an article rendered as text.
Obtained from CGS.reader. Each entry point launches a full-screen Activity of its own and returns immediately — the reader owns the screen from there, and comes back to yours when the user leaves it.
val item = CGS.download().issue(issueId)
// once item.state is Download.Item.State.Downloaded
CGS.reader().open(activity, item, page = lastPageRead)Content copied to clipboard
Reading an issue means downloading it first: open takes a Download.Item, not an id. Articles have no such requirement — openArticle and openArticles fetch what they need on the spot.
Reading progress is recorded as pages are turned; read it back through CGS.readings to offer a "resume where you left off".