Editions
-
Undocumented
See moreDeclaration
Swift
public struct DownloadedEdition : Sendable
-
Interface to manage downloaded editions.
See moreDeclaration
Swift
@MainActor public protocol DownloadedEditionsManager
-
Interface for querying the editions on disk, which usually means they are prepared to be presented to the user.
See moreDeclaration
Swift
@MainActor public protocol DownloadedEditionsProvider
-
Interface that provides information about the edition download progress.
See moreDeclaration
Swift
public protocol DownloadProgressListener
-
Undocumented
See moreDeclaration
Swift
public struct Edition : Equatable, Hashable, Sendable
-
Contains the number of editions per month and grouped by year in a time interval.
Format for years and months is numeric (e.g. “2023”, “01”).
Declaration
Swift
public typealias EditionCounts = [String : [String : Int]]
-
Interface to get the cover for a edition as an image.
The SDK keeps a cache, so it is safe to call these methods in offline mode. If the network fails or can’t be accessed the SDK will use any cached image available, even if it needs to upscale to satisfy
See moreboundingBoxSize
parameters passed to the methods.Declaration
Swift
@MainActor public protocol EditionCoverProvider
-
Interface to get the cover for a edition as data.
See moreDeclaration
Swift
@MainActor public protocol EditionCoverDataProvider
-
Error thrown when Editions initialization with
initialize()
fails.Declaration
Swift
public struct EditionsInitializationError : Error, Sendable
-
Interface for downloading and presenting editions to the user.
See moreDeclaration
Swift
public protocol EditionPresenter
-
Interface for getting the products the issues belong to since the latest feed update, see
See moreEditions.updateFeed
.Declaration
Swift
public protocol EditionProductsProvider
-
Protocol to get the the editions available since the latest feed update.
See also
updateFeed(completion:)
Declaration
Swift
public protocol EditionProvider
-
Protocol to get disk usage from downloaded editions.
See moreDeclaration
Swift
@MainActor public protocol EditionsDiskUsageProvider
-
Undocumented
See moreDeclaration
Swift
public struct EditionsProduct : Equatable, Sendable
-
List of errors that can happen when trying to present an edition.
See moreDeclaration
Swift
public enum OpenError : Error
-
Interface to iterate over the results queried from
EditionProvider
.Call
next(callback:)
ornext()
as needed until thePaginator
is exhausted (hasNext
== false). It provides aResult
containing aPage
on success.Note
CallingupdateFeed()
will render anyPaginator
object invalid. To keep receiving Editions you need to query them again usingeditions(productTags:startDate:endDate:pageSize:)
after an update.Declaration
Swift
public protocol Paginator : Sendable