EditionCoverBitmapProvider

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

Inheritors

Functions

Link copied to clipboard
abstract fun coverBitmapForEdition(edition: Edition, boundingBoxSize: IntSize, completion: (Bitmap?, CoverError?) -> Unit): Cancelable

This method provides a Bitmap with the cover of an edition cover given a size through boundingBoxSize in pixels. The cover size is guaranteed to fit in boundingBoxSize. Edition.coverSize can be used if you need to calculate an exact size to pass in boundingBoxSize.