muzei-api / com.google.android.apps.muzei.api / MuzeiContract / Artwork / getCurrentArtworkBitmap

getCurrentArtworkBitmap

@JvmStatic @WorkerThread fun getCurrentArtworkBitmap(context: Context): Bitmap?

Naively gets the current artwork image without any subsampling or optimization for output size

Note that this may return a very large Bitmap so following the Displaying Bitmaps Efficiently training is highly recommended.

Parameters

context - the context to retrieve a ContentResolver.

Exceptions

FileNotFoundException - If no cached artwork image was found.

Return
A Bitmap of the current artwork or null if the image could not be decoded.