EditionCoverBytesProvider

Interface to get the cover for an edition as a Bitmap.

Inheritors

Functions

Link copied to clipboard
abstract fun coverBytesForEdition(edition: Edition, targetSize: IntSize, completion: (ByteArray?, CoverError?) -> Unit): Cancelable

This method provides a ByteArray value with the image file data for the cover of an edition. The cover is provided through the the completion callback. targetSize is used for URL creation if the image is not locally available, but this method makes no guarantees about the size of the image represented by the returned data.