open fun openFile(artwork: Artwork): InputStream
Provide an InputStream to the binary data associated with artwork that has not yet been cached. The default implementation retrieves the image from the persistent URI and supports URI schemes in the following formats:
content://...
.android.resource://...
.file://...
.file:///android_asset/...
.http://...
or https://...
.Throwing any exception other than an IOException will be considered a permanent error that will result in a call to onInvalidArtwork.
IOException
- if an error occurs while opening the image. The request will be retried
automatically.
Return
A valid InputStream for the artwork's image