Issues

interface Issues

The issue catalogue: one dated release of a publication, downloadable and readable page by page.

Reached through Content.issues. get resolves one issue in full — page count, cover, format — while the all overloads list them in their light IssueShort form. To read one, download it first through Download.

val archives = CGS.content().issues.all(
issueIds = emptyList(),
publicationIds = listOf(publicationId),
dates = DateRange.ofYear(2025),
scope = viewModelScope
)

Everything here follows the active profile and is bound to the scope you pass — see Content.

Functions

Link copied to clipboard
abstract fun all(pageSize: Int = 20, scope: CoroutineScope): PaginatedResource<IssueShort>

Retrieves a paginated list of issue content accessible to the current user profile.

abstract fun all(issueIds: List<IssueId>, publicationIds: List<PublicationId>, dates: DateRange? = null, pageSize: Int = 20, scope: CoroutineScope): PaginatedResource<IssueShort>

Retrieves a paginated list of issue content accessible to the current user profile filtered by issueIds and publicationIds, optionally narrowed to the issues released within dates.

Link copied to clipboard
abstract suspend fun get(id: IssueId, scope: CoroutineScope): StateFlow<CgsStreamState<Issue?>>

Observes an issue by its identifier, reacting to changes in the active session.