DownloadedEditionsManager

Interface to manage downloaded editions.

Functions

Link copied to clipboard
abstract fun deleteAllDownloadedEditions(onDeletedEdition: (UUID) -> Unit, completion: () -> Unit)

Deletes from disk all the downloaded editions, calling onDeletedEdition for each edition when it is deleted from disk. completion is called when all editions have been deleted.

Link copied to clipboard
abstract fun deleteEdition(editionId: UUID, completion: () -> Unit)

Deletes a single edition with id editionId.

Link copied to clipboard
abstract suspend fun deleteEditionAsync(editionId: UUID)

Coroutine version of deleteEdition.