Readings

interface Readings

How far into each issue the reader got.

Obtained from CGS.readings. Progress is recorded by the reader as pages are turned, so nothing has to be reported by hand — this service only reads it back.

CGS.readings().issues().collect { progress ->
val status = progress[issueId]
showResumeBadge(status?.progress ?: 0f)
}

Progress is per profile: switching profiles switches which reading history is visible.

Functions

Link copied to clipboard
abstract fun issues(): Flow<Map<IssueId, ReadingStatus>>

Every issue with a recorded reading progress, keyed by its id. An issue that was never opened is absent from the map rather than present with a zero.