InMemoryCoverService

A CoverService which uses a provided in-memory bitmap.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()

Closes any opened file handles, removes temporary files, etc.

Link copied to clipboard
open suspend override fun cover(): Bitmap

Returns the publication cover as a Bitmap at its maximum size.

Link copied to clipboard
open suspend fun coverFitting(maxSize: Size): Bitmap?

Returns the publication cover as a Bitmap, scaled down to fit the given maxSize.