ReadingList

interface ReadingList

Issues the user has set aside to read later.

Obtained from CGS.readingList. Saving an issue does not download it — the two are independent: an issue can be saved and never downloaded, or downloaded and never saved.

CGS.readingList().save(issueId)
CGS.readingList().issues().collect { saved -> renderBookmark(issueId in saved) }

The list is per profile: switching profiles switches which one is visible.

Functions

Link copied to clipboard
abstract fun issues(): Flow<Set<IssueId>>

Every issue currently saved.

Link copied to clipboard
abstract suspend fun remove(issueId: IssueId)

Removes issueId from the list. Removing one that is not on it changes nothing.

Link copied to clipboard
abstract suspend fun save(issueId: IssueId)

Saves issueId for later. Saving one that is already saved changes nothing.