DownloadedEditionsManager
@MainActor
public protocol DownloadedEditionsManager
Interface to manage downloaded editions.
-
Deletes from disk all the downloaded editions, calling
onDeletedEditionfor each edition when it is deleted from disk.completionis called when all editions have been deleted.Declaration
Swift
@MainActor func deleteAllDownloadedEditions(onDeletedEdition: @escaping (UUID) -> Void, completion: @escaping () -> Void) -
Deletes a single edition with id
editionId.Declaration
Swift
@MainActor func deleteEdition(editionId: UUID, completion: @escaping () -> Void)