coverBitmapForEdition
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.
The method returns a Cancelable that can be used to cancel the operation. If the operation is canceled, completion will be called with CoverError.CANCELED
The SDK keeps a cache, so it is safe to call this method in offline mode, if network fails or can't be accessed the SDK will use any cached image available, even if it needs to upscale to satisfy the boundingBoxSize
.